31 writes to Response
Azure.Core (1)
Pipeline\HttpClientTransport.cs (1)
142message.Response = new PipelineResponse(message.Request.ClientRequestId, responseMessage, contentStream);
Azure.Core.TestFramework (4)
MockTransport.cs (2)
87message.Response = await RequestGate.WaitForRelease(request); 91message.Response = _responseFactory(message);
PlaybackTransport.cs (2)
59message.Response = GetResponse(_session.Lookup(requestEntry, _matcher, _sanitizer)); 92message.Response = GetResponse(_session.Lookup(requestEntry, _matcher, _sanitizer));
Azure.Core.Tests (7)
HttpPipelineMessageTest.cs (5)
30message.Response = responseMock.Object; 44message.Response = response; 60message.Response = response; 75message.Response = response; 92message.Response = response;
ResponseClassifierTests.cs (1)
22httpMessage.Response = new MockResponse(code);
Shared\Multipart\MemoryTransport.cs (1)
29message.Response = new MemoryResponse();
Azure.Data.Tables (1)
Shared\MemoryTransport.cs (1)
29message.Response = new MemoryResponse();
Azure.Storage.Blobs.Batch (1)
BatchPipelineTransport.cs (1)
48message.Response = new MemoryResponse();
Azure.Storage.Blobs.Batch.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.Batch.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.ChangeFeed.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Common.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Common.Tests (4)
GeoRedundantReadPolicyTests.cs (1)
87Response = new MockResponse(Constants.HttpStatusCode.NotFound)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
StorageResponseClassifierTests.cs (2)
90httpMessage.Response = new MockResponse(409); 106Response = response
Azure.Storage.Files.DataLake.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Files.DataLake.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Files.Shares.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Files.Shares.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Queues.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Queues.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
25674 references to Response
Azure.AI.AnomalyDetector (97)
Generated\AnomalyDetectorRestClient.cs (92)
73switch (message.Response.Status) 78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 105using var document = JsonDocument.Parse(message.Response.ContentStream); 107return Response.FromValue(value, message.Response); 110throw _clientDiagnostics.CreateRequestFailedException(message.Response); 146switch (message.Response.Status) 151using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 153return Response.FromValue(value, message.Response); 156throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 292var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response); 293switch (message.Response.Status) 296return ResponseWithHeaders.FromValue(headers, message.Response); 298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 315var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response); 316switch (message.Response.Status) 319return ResponseWithHeaders.FromValue(headers, message.Response); 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 356switch (message.Response.Status) 361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 363return Response.FromValue(value, message.Response); 366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 378switch (message.Response.Status) 383using var document = JsonDocument.Parse(message.Response.ContentStream); 385return Response.FromValue(value, message.Response); 388throw _clientDiagnostics.CreateRequestFailedException(message.Response); 415switch (message.Response.Status) 420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 422return Response.FromValue(value, message.Response); 425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 436switch (message.Response.Status) 441using var document = JsonDocument.Parse(message.Response.ContentStream); 443return Response.FromValue(value, message.Response); 446throw _clientDiagnostics.CreateRequestFailedException(message.Response); 473switch (message.Response.Status) 476return message.Response; 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 489switch (message.Response.Status) 492return message.Response; 494throw _clientDiagnostics.CreateRequestFailedException(message.Response); 533var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response); 534switch (message.Response.Status) 537return ResponseWithHeaders.FromValue(headers, message.Response); 539throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 557var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response); 558switch (message.Response.Status) 561return ResponseWithHeaders.FromValue(headers, message.Response); 563throw _clientDiagnostics.CreateRequestFailedException(message.Response); 590switch (message.Response.Status) 595using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 597return Response.FromValue(value, message.Response); 600throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 611switch (message.Response.Status) 616using var document = JsonDocument.Parse(message.Response.ContentStream); 618return Response.FromValue(value, message.Response); 621throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654return Response.FromValue(value, message.Response); 657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 673return Response.FromValue(value, message.Response); 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 743switch (message.Response.Status) 748using var document = JsonDocument.Parse(message.Response.ContentStream); 750return Response.FromValue(value, message.Response); 753throw _clientDiagnostics.CreateRequestFailedException(message.Response); 787switch (message.Response.Status) 792using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 794return Response.FromValue(value, message.Response); 797throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 816switch (message.Response.Status) 821using var document = JsonDocument.Parse(message.Response.ContentStream); 823return Response.FromValue(value, message.Response); 826throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.AI.FormRecognizer (347)
Generated\DocumentAnalysisRestClient.cs (118)
90var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 91switch (message.Response.Status) 94return ResponseWithHeaders.FromValue(headers, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 118var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 119switch (message.Response.Status) 122return ResponseWithHeaders.FromValue(headers, message.Response); 124throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 182switch (message.Response.Status) 185return ResponseWithHeaders.FromValue(headers, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 208var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 209switch (message.Response.Status) 212return ResponseWithHeaders.FromValue(headers, message.Response); 214throw _clientDiagnostics.CreateRequestFailedException(message.Response); 254switch (message.Response.Status) 259using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 261return Response.FromValue(value, message.Response); 264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 286switch (message.Response.Status) 291using var document = JsonDocument.Parse(message.Response.ContentStream); 293return Response.FromValue(value, message.Response); 296throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332var headers = new DocumentAnalysisBuildDocumentModelHeaders(message.Response); 333switch (message.Response.Status) 336return ResponseWithHeaders.FromValue(headers, message.Response); 338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355var headers = new DocumentAnalysisBuildDocumentModelHeaders(message.Response); 356switch (message.Response.Status) 359return ResponseWithHeaders.FromValue(headers, message.Response); 361throw _clientDiagnostics.CreateRequestFailedException(message.Response); 397var headers = new DocumentAnalysisComposeDocumentModelHeaders(message.Response); 398switch (message.Response.Status) 401return ResponseWithHeaders.FromValue(headers, message.Response); 403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420var headers = new DocumentAnalysisComposeDocumentModelHeaders(message.Response); 421switch (message.Response.Status) 424return ResponseWithHeaders.FromValue(headers, message.Response); 426throw _clientDiagnostics.CreateRequestFailedException(message.Response); 462switch (message.Response.Status) 467using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 469return Response.FromValue(value, message.Response); 472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 489switch (message.Response.Status) 494using var document = JsonDocument.Parse(message.Response.ContentStream); 496return Response.FromValue(value, message.Response); 499throw _clientDiagnostics.CreateRequestFailedException(message.Response); 542var headers = new DocumentAnalysisCopyDocumentModelToHeaders(message.Response); 543switch (message.Response.Status) 546return ResponseWithHeaders.FromValue(headers, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 570var headers = new DocumentAnalysisCopyDocumentModelToHeaders(message.Response); 571switch (message.Response.Status) 574return ResponseWithHeaders.FromValue(headers, message.Response); 576throw _clientDiagnostics.CreateRequestFailedException(message.Response); 601switch (message.Response.Status) 606using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 608return Response.FromValue(value, message.Response); 611throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 621switch (message.Response.Status) 626using var document = JsonDocument.Parse(message.Response.ContentStream); 628return Response.FromValue(value, message.Response); 631throw _clientDiagnostics.CreateRequestFailedException(message.Response); 664switch (message.Response.Status) 669using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 671return Response.FromValue(value, message.Response); 674throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 691switch (message.Response.Status) 696using var document = JsonDocument.Parse(message.Response.ContentStream); 698return Response.FromValue(value, message.Response); 701throw _clientDiagnostics.CreateRequestFailedException(message.Response); 726switch (message.Response.Status) 731using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 733return Response.FromValue(value, message.Response); 736throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw _clientDiagnostics.CreateRequestFailedException(message.Response); 789switch (message.Response.Status) 794using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 796return Response.FromValue(value, message.Response); 799throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 816switch (message.Response.Status) 821using var document = JsonDocument.Parse(message.Response.ContentStream); 823return Response.FromValue(value, message.Response); 826throw _clientDiagnostics.CreateRequestFailedException(message.Response); 859switch (message.Response.Status) 862return message.Response; 864throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 881switch (message.Response.Status) 884return message.Response; 886throw _clientDiagnostics.CreateRequestFailedException(message.Response); 911switch (message.Response.Status) 916using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 918return Response.FromValue(value, message.Response); 921throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 931switch (message.Response.Status) 936using var document = JsonDocument.Parse(message.Response.ContentStream); 938return Response.FromValue(value, message.Response); 941throw _clientDiagnostics.CreateRequestFailedException(message.Response); 972switch (message.Response.Status) 977using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 979return Response.FromValue(value, message.Response); 982throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 999switch (message.Response.Status) 1004using var document = JsonDocument.Parse(message.Response.ContentStream); 1006return Response.FromValue(value, message.Response); 1009throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1040switch (message.Response.Status) 1045using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1047return Response.FromValue(value, message.Response); 1050throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1067switch (message.Response.Status) 1072using var document = JsonDocument.Parse(message.Response.ContentStream); 1074return Response.FromValue(value, message.Response); 1077throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FormRecognizerRestClient.cs (224)
74var headers = new FormRecognizerTrainCustomModelAsyncHeaders(message.Response); 75switch (message.Response.Status) 78return ResponseWithHeaders.FromValue(headers, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97var headers = new FormRecognizerTrainCustomModelAsyncHeaders(message.Response); 98switch (message.Response.Status) 101return ResponseWithHeaders.FromValue(headers, message.Response); 103throw _clientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 142return Response.FromValue(value, message.Response); 145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 197return message.Response; 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210switch (message.Response.Status) 213return message.Response; 215throw _clientDiagnostics.CreateRequestFailedException(message.Response); 260var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 261switch (message.Response.Status) 264return ResponseWithHeaders.FromValue(headers, message.Response); 266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 281var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 282switch (message.Response.Status) 285return ResponseWithHeaders.FromValue(headers, message.Response); 287throw _clientDiagnostics.CreateRequestFailedException(message.Response); 333var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 334switch (message.Response.Status) 337return ResponseWithHeaders.FromValue(headers, message.Response); 339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 354switch (message.Response.Status) 357return ResponseWithHeaders.FromValue(headers, message.Response); 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 411switch (message.Response.Status) 416using var document = JsonDocument.Parse(message.Response.ContentStream); 418return Response.FromValue(value, message.Response); 421throw _clientDiagnostics.CreateRequestFailedException(message.Response); 460var headers = new FormRecognizerCopyCustomModelHeaders(message.Response); 461switch (message.Response.Status) 464return ResponseWithHeaders.FromValue(headers, message.Response); 466throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 484var headers = new FormRecognizerCopyCustomModelHeaders(message.Response); 485switch (message.Response.Status) 488return ResponseWithHeaders.FromValue(headers, message.Response); 490throw _clientDiagnostics.CreateRequestFailedException(message.Response); 520switch (message.Response.Status) 525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 527return Response.FromValue(value, message.Response); 530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 542switch (message.Response.Status) 547using var document = JsonDocument.Parse(message.Response.ContentStream); 549return Response.FromValue(value, message.Response); 552throw _clientDiagnostics.CreateRequestFailedException(message.Response); 577var headers = new FormRecognizerGenerateModelCopyAuthorizationHeaders(message.Response); 578switch (message.Response.Status) 583using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 585return ResponseWithHeaders.FromValue(value, headers, message.Response); 588throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 598var headers = new FormRecognizerGenerateModelCopyAuthorizationHeaders(message.Response); 599switch (message.Response.Status) 604using var document = JsonDocument.Parse(message.Response.ContentStream); 606return ResponseWithHeaders.FromValue(value, headers, message.Response); 609throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649var headers = new FormRecognizerComposeCustomModelsAsyncHeaders(message.Response); 650switch (message.Response.Status) 653return ResponseWithHeaders.FromValue(headers, message.Response); 655throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 676var headers = new FormRecognizerComposeCustomModelsAsyncHeaders(message.Response); 677switch (message.Response.Status) 680return ResponseWithHeaders.FromValue(headers, message.Response); 682throw _clientDiagnostics.CreateRequestFailedException(message.Response); 729var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 730switch (message.Response.Status) 733return ResponseWithHeaders.FromValue(headers, message.Response); 735throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 751switch (message.Response.Status) 754return ResponseWithHeaders.FromValue(headers, message.Response); 756throw _clientDiagnostics.CreateRequestFailedException(message.Response); 804var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 805switch (message.Response.Status) 808return ResponseWithHeaders.FromValue(headers, message.Response); 810throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 824var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 825switch (message.Response.Status) 828return ResponseWithHeaders.FromValue(headers, message.Response); 830throw _clientDiagnostics.CreateRequestFailedException(message.Response); 857switch (message.Response.Status) 862using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 864return Response.FromValue(value, message.Response); 867throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 878switch (message.Response.Status) 883using var document = JsonDocument.Parse(message.Response.ContentStream); 885return Response.FromValue(value, message.Response); 888throw _clientDiagnostics.CreateRequestFailedException(message.Response); 935var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 936switch (message.Response.Status) 939return ResponseWithHeaders.FromValue(headers, message.Response); 941throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 956var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 957switch (message.Response.Status) 960return ResponseWithHeaders.FromValue(headers, message.Response); 962throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1010var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 1011switch (message.Response.Status) 1014return ResponseWithHeaders.FromValue(headers, message.Response); 1016throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1030var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 1031switch (message.Response.Status) 1034return ResponseWithHeaders.FromValue(headers, message.Response); 1036throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1063switch (message.Response.Status) 1068using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1070return Response.FromValue(value, message.Response); 1073throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1084switch (message.Response.Status) 1089using var document = JsonDocument.Parse(message.Response.ContentStream); 1091return Response.FromValue(value, message.Response); 1094throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1136var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1137switch (message.Response.Status) 1140return ResponseWithHeaders.FromValue(headers, message.Response); 1142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1156var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1157switch (message.Response.Status) 1160return ResponseWithHeaders.FromValue(headers, message.Response); 1162throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1205var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1206switch (message.Response.Status) 1209return ResponseWithHeaders.FromValue(headers, message.Response); 1211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1224var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1225switch (message.Response.Status) 1228return ResponseWithHeaders.FromValue(headers, message.Response); 1230throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1257switch (message.Response.Status) 1262using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1264return Response.FromValue(value, message.Response); 1267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1278switch (message.Response.Status) 1283using var document = JsonDocument.Parse(message.Response.ContentStream); 1285return Response.FromValue(value, message.Response); 1288throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1335var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1336switch (message.Response.Status) 1339return ResponseWithHeaders.FromValue(headers, message.Response); 1341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1356var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1357switch (message.Response.Status) 1360return ResponseWithHeaders.FromValue(headers, message.Response); 1362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1410var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1411switch (message.Response.Status) 1414return ResponseWithHeaders.FromValue(headers, message.Response); 1416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1430var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1431switch (message.Response.Status) 1434return ResponseWithHeaders.FromValue(headers, message.Response); 1436throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1463switch (message.Response.Status) 1468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1470return Response.FromValue(value, message.Response); 1473throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1484switch (message.Response.Status) 1489using var document = JsonDocument.Parse(message.Response.ContentStream); 1491return Response.FromValue(value, message.Response); 1494throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1541var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1542switch (message.Response.Status) 1545return ResponseWithHeaders.FromValue(headers, message.Response); 1547throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1562var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1563switch (message.Response.Status) 1566return ResponseWithHeaders.FromValue(headers, message.Response); 1568throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1616var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1617switch (message.Response.Status) 1620return ResponseWithHeaders.FromValue(headers, message.Response); 1622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1636var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1637switch (message.Response.Status) 1640return ResponseWithHeaders.FromValue(headers, message.Response); 1642throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1669switch (message.Response.Status) 1674using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1676return Response.FromValue(value, message.Response); 1679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1690switch (message.Response.Status) 1695using var document = JsonDocument.Parse(message.Response.ContentStream); 1697return Response.FromValue(value, message.Response); 1700throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1726switch (message.Response.Status) 1731using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1733return Response.FromValue(value, message.Response); 1736throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1746switch (message.Response.Status) 1751using var document = JsonDocument.Parse(message.Response.ContentStream); 1753return Response.FromValue(value, message.Response); 1756throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1782switch (message.Response.Status) 1787using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1789return Response.FromValue(value, message.Response); 1792throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1802switch (message.Response.Status) 1807using var document = JsonDocument.Parse(message.Response.ContentStream); 1809return Response.FromValue(value, message.Response); 1812throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1844switch (message.Response.Status) 1849using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1851return Response.FromValue(value, message.Response); 1854throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1871switch (message.Response.Status) 1876using var document = JsonDocument.Parse(message.Response.ContentStream); 1878return Response.FromValue(value, message.Response); 1881throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.AI.Language.Conversations (13)
Generated\ConversationAnalysisRestClient.cs (8)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120switch (message.Response.Status) 125using var document = JsonDocument.Parse(message.Response.ContentStream); 127return Response.FromValue(value, message.Response); 130throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.AI.Language.QuestionAnswering (25)
Generated\QuestionAnsweringProjectsClient.cs (4)
3391return message.Response.Status switch 3404return message.Response.Status switch 3418return message.Response.Status switch 3431return message.Response.Status switch
Generated\QuestionAnsweringRestClient.cs (16)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120switch (message.Response.Status) 125using var document = JsonDocument.Parse(message.Response.ContentStream); 127return Response.FromValue(value, message.Response); 130throw _clientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 193switch (message.Response.Status) 198using var document = JsonDocument.Parse(message.Response.ContentStream); 200return Response.FromValue(value, message.Response); 203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.AI.MetricsAdvisor (553)
Generated\MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2RestClient.cs (548)
58switch (message.Response.Status) 63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 65return Response.FromValue(value, message.Response); 68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 78switch (message.Response.Status) 83using var document = JsonDocument.Parse(message.Response.ContentStream); 85return Response.FromValue(value, message.Response); 88throw _clientDiagnostics.CreateRequestFailedException(message.Response); 114switch (message.Response.Status) 119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 121return Response.FromValue(value, message.Response); 124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140using var document = JsonDocument.Parse(message.Response.ContentStream); 142return Response.FromValue(value, message.Response); 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210switch (message.Response.Status) 215using var document = JsonDocument.Parse(message.Response.ContentStream); 217return Response.FromValue(value, message.Response); 220throw _clientDiagnostics.CreateRequestFailedException(message.Response); 246switch (message.Response.Status) 249return message.Response; 251throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 262switch (message.Response.Status) 265return message.Response; 267throw _clientDiagnostics.CreateRequestFailedException(message.Response); 302var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response); 303switch (message.Response.Status) 306return ResponseWithHeaders.FromValue(headers, message.Response); 308throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 325var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response); 326switch (message.Response.Status) 329return ResponseWithHeaders.FromValue(headers, message.Response); 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 379switch (message.Response.Status) 384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 386return Response.FromValue(value, message.Response); 389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 409switch (message.Response.Status) 414using var document = JsonDocument.Parse(message.Response.ContentStream); 416return Response.FromValue(value, message.Response); 419throw _clientDiagnostics.CreateRequestFailedException(message.Response); 465switch (message.Response.Status) 470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 472return Response.FromValue(value, message.Response); 475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 581switch (message.Response.Status) 586using var document = JsonDocument.Parse(message.Response.ContentStream); 588return Response.FromValue(value, message.Response); 591throw _clientDiagnostics.CreateRequestFailedException(message.Response); 617switch (message.Response.Status) 622using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 624return Response.FromValue(value, message.Response); 627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 638switch (message.Response.Status) 643using var document = JsonDocument.Parse(message.Response.ContentStream); 645return Response.FromValue(value, message.Response); 648throw _clientDiagnostics.CreateRequestFailedException(message.Response); 685switch (message.Response.Status) 690using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 692return Response.FromValue(value, message.Response); 695throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 713switch (message.Response.Status) 718using var document = JsonDocument.Parse(message.Response.ContentStream); 720return Response.FromValue(value, message.Response); 723throw _clientDiagnostics.CreateRequestFailedException(message.Response); 749switch (message.Response.Status) 752return message.Response; 754throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 765switch (message.Response.Status) 768return message.Response; 770throw _clientDiagnostics.CreateRequestFailedException(message.Response); 805var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response); 806switch (message.Response.Status) 809return ResponseWithHeaders.FromValue(headers, message.Response); 811throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 828var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response); 829switch (message.Response.Status) 832return ResponseWithHeaders.FromValue(headers, message.Response); 834throw _clientDiagnostics.CreateRequestFailedException(message.Response); 871switch (message.Response.Status) 876using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 878return Response.FromValue(value, message.Response); 881throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 894switch (message.Response.Status) 899using var document = JsonDocument.Parse(message.Response.ContentStream); 901return Response.FromValue(value, message.Response); 904throw _clientDiagnostics.CreateRequestFailedException(message.Response); 942switch (message.Response.Status) 947using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 949return Response.FromValue(value, message.Response); 952throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 970switch (message.Response.Status) 975using var document = JsonDocument.Parse(message.Response.ContentStream); 977return Response.FromValue(value, message.Response); 980throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1028switch (message.Response.Status) 1033using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1035return Response.FromValue(value, message.Response); 1038throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1058switch (message.Response.Status) 1063using var document = JsonDocument.Parse(message.Response.ContentStream); 1065return Response.FromValue(value, message.Response); 1068throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1116switch (message.Response.Status) 1121using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1123return Response.FromValue(value, message.Response); 1126throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1146switch (message.Response.Status) 1151using var document = JsonDocument.Parse(message.Response.ContentStream); 1153return Response.FromValue(value, message.Response); 1156throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1199switch (message.Response.Status) 1204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1206return Response.FromValue(value, message.Response); 1209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1228switch (message.Response.Status) 1233using var document = JsonDocument.Parse(message.Response.ContentStream); 1235return Response.FromValue(value, message.Response); 1238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1275switch (message.Response.Status) 1280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1282return Response.FromValue(value, message.Response); 1285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1298switch (message.Response.Status) 1303using var document = JsonDocument.Parse(message.Response.ContentStream); 1305return Response.FromValue(value, message.Response); 1308throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1344switch (message.Response.Status) 1349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1351return Response.FromValue(value, message.Response); 1354throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1372switch (message.Response.Status) 1377using var document = JsonDocument.Parse(message.Response.ContentStream); 1379return Response.FromValue(value, message.Response); 1382throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1417var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response); 1418switch (message.Response.Status) 1421return ResponseWithHeaders.FromValue(headers, message.Response); 1423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1440var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response); 1441switch (message.Response.Status) 1444return ResponseWithHeaders.FromValue(headers, message.Response); 1446throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1480switch (message.Response.Status) 1485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1487return Response.FromValue(value, message.Response); 1490throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1502switch (message.Response.Status) 1507using var document = JsonDocument.Parse(message.Response.ContentStream); 1509return Response.FromValue(value, message.Response); 1512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1549switch (message.Response.Status) 1554using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1556return Response.FromValue(value, message.Response); 1559throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1577switch (message.Response.Status) 1582using var document = JsonDocument.Parse(message.Response.ContentStream); 1584return Response.FromValue(value, message.Response); 1587throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1613switch (message.Response.Status) 1616return message.Response; 1618throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1629switch (message.Response.Status) 1632return message.Response; 1634throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1660switch (message.Response.Status) 1665using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1667return Response.FromValue(value, message.Response); 1670throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1681switch (message.Response.Status) 1686using var document = JsonDocument.Parse(message.Response.ContentStream); 1688return Response.FromValue(value, message.Response); 1691throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1750switch (message.Response.Status) 1755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1757return Response.FromValue(value, message.Response); 1760throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1777switch (message.Response.Status) 1782using var document = JsonDocument.Parse(message.Response.ContentStream); 1784return Response.FromValue(value, message.Response); 1787throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1822var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response); 1823switch (message.Response.Status) 1826return ResponseWithHeaders.FromValue(headers, message.Response); 1828throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1845var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response); 1846switch (message.Response.Status) 1849return ResponseWithHeaders.FromValue(headers, message.Response); 1851throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1877switch (message.Response.Status) 1882using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1884return Response.FromValue(value, message.Response); 1887throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1898switch (message.Response.Status) 1903using var document = JsonDocument.Parse(message.Response.ContentStream); 1905return Response.FromValue(value, message.Response); 1908throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1945switch (message.Response.Status) 1950using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1952return Response.FromValue(value, message.Response); 1955throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1973switch (message.Response.Status) 1978using var document = JsonDocument.Parse(message.Response.ContentStream); 1980return Response.FromValue(value, message.Response); 1983throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2009switch (message.Response.Status) 2012return message.Response; 2014throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2025switch (message.Response.Status) 2028return message.Response; 2030throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2056switch (message.Response.Status) 2061using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2063return Response.FromValue(value, message.Response); 2066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2077switch (message.Response.Status) 2082using var document = JsonDocument.Parse(message.Response.ContentStream); 2084return Response.FromValue(value, message.Response); 2087throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2132switch (message.Response.Status) 2137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2139return Response.FromValue(value, message.Response); 2142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2161switch (message.Response.Status) 2166using var document = JsonDocument.Parse(message.Response.ContentStream); 2168return Response.FromValue(value, message.Response); 2171throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2206var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response); 2207switch (message.Response.Status) 2210return ResponseWithHeaders.FromValue(headers, message.Response); 2212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2229var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response); 2230switch (message.Response.Status) 2233return ResponseWithHeaders.FromValue(headers, message.Response); 2235throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2274switch (message.Response.Status) 2279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2281return Response.FromValue(value, message.Response); 2284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2297switch (message.Response.Status) 2302using var document = JsonDocument.Parse(message.Response.ContentStream); 2304return Response.FromValue(value, message.Response); 2307throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2342var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response); 2343switch (message.Response.Status) 2346return ResponseWithHeaders.FromValue(headers, message.Response); 2348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2365var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response); 2366switch (message.Response.Status) 2369return ResponseWithHeaders.FromValue(headers, message.Response); 2371throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2397switch (message.Response.Status) 2402using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2404return Response.FromValue(value, message.Response); 2407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2418switch (message.Response.Status) 2423using var document = JsonDocument.Parse(message.Response.ContentStream); 2425return Response.FromValue(value, message.Response); 2428throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2465switch (message.Response.Status) 2470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2472return Response.FromValue(value, message.Response); 2475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2493switch (message.Response.Status) 2498using var document = JsonDocument.Parse(message.Response.ContentStream); 2500return Response.FromValue(value, message.Response); 2503throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2529switch (message.Response.Status) 2532return message.Response; 2534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2545switch (message.Response.Status) 2548return message.Response; 2550throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2598switch (message.Response.Status) 2603using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2605return Response.FromValue(value, message.Response); 2608throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2628switch (message.Response.Status) 2633using var document = JsonDocument.Parse(message.Response.ContentStream); 2635return Response.FromValue(value, message.Response); 2638throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2676switch (message.Response.Status) 2679return message.Response; 2681throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2699switch (message.Response.Status) 2702return message.Response; 2704throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2731switch (message.Response.Status) 2736using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2738return Response.FromValue(value, message.Response); 2741throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2752switch (message.Response.Status) 2757using var document = JsonDocument.Parse(message.Response.ContentStream); 2759return Response.FromValue(value, message.Response); 2762throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2800switch (message.Response.Status) 2805using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2807return Response.FromValue(value, message.Response); 2810throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2828switch (message.Response.Status) 2833using var document = JsonDocument.Parse(message.Response.ContentStream); 2835return Response.FromValue(value, message.Response); 2838throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2886switch (message.Response.Status) 2891using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2893return Response.FromValue(value, message.Response); 2896throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2916switch (message.Response.Status) 2921using var document = JsonDocument.Parse(message.Response.ContentStream); 2923return Response.FromValue(value, message.Response); 2926throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2974switch (message.Response.Status) 2979using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2981return Response.FromValue(value, message.Response); 2984throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3004switch (message.Response.Status) 3009using var document = JsonDocument.Parse(message.Response.ContentStream); 3011return Response.FromValue(value, message.Response); 3014throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3051switch (message.Response.Status) 3056using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3058return Response.FromValue(value, message.Response); 3061throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3074switch (message.Response.Status) 3079using var document = JsonDocument.Parse(message.Response.ContentStream); 3081return Response.FromValue(value, message.Response); 3084throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3132switch (message.Response.Status) 3137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3139return Response.FromValue(value, message.Response); 3142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3162switch (message.Response.Status) 3167using var document = JsonDocument.Parse(message.Response.ContentStream); 3169return Response.FromValue(value, message.Response); 3172throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3213switch (message.Response.Status) 3218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3220return Response.FromValue(value, message.Response); 3223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3245switch (message.Response.Status) 3250using var document = JsonDocument.Parse(message.Response.ContentStream); 3252return Response.FromValue(value, message.Response); 3255throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3296switch (message.Response.Status) 3301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3303return Response.FromValue(value, message.Response); 3306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3328switch (message.Response.Status) 3333using var document = JsonDocument.Parse(message.Response.ContentStream); 3335return Response.FromValue(value, message.Response); 3338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3379switch (message.Response.Status) 3384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3386return Response.FromValue(value, message.Response); 3389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3411switch (message.Response.Status) 3416using var document = JsonDocument.Parse(message.Response.ContentStream); 3418return Response.FromValue(value, message.Response); 3421throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3462switch (message.Response.Status) 3467using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3469return Response.FromValue(value, message.Response); 3472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3494switch (message.Response.Status) 3499using var document = JsonDocument.Parse(message.Response.ContentStream); 3501return Response.FromValue(value, message.Response); 3504throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3545switch (message.Response.Status) 3550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3552return Response.FromValue(value, message.Response); 3555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3577switch (message.Response.Status) 3582using var document = JsonDocument.Parse(message.Response.ContentStream); 3584return Response.FromValue(value, message.Response); 3587throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3628switch (message.Response.Status) 3633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3635return Response.FromValue(value, message.Response); 3638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3660switch (message.Response.Status) 3665using var document = JsonDocument.Parse(message.Response.ContentStream); 3667return Response.FromValue(value, message.Response); 3670throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3711switch (message.Response.Status) 3716using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3718return Response.FromValue(value, message.Response); 3721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3743switch (message.Response.Status) 3748using var document = JsonDocument.Parse(message.Response.ContentStream); 3750return Response.FromValue(value, message.Response); 3753throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3794switch (message.Response.Status) 3799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3801return Response.FromValue(value, message.Response); 3804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3826switch (message.Response.Status) 3831using var document = JsonDocument.Parse(message.Response.ContentStream); 3833return Response.FromValue(value, message.Response); 3836throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3875switch (message.Response.Status) 3880using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3882return Response.FromValue(value, message.Response); 3885throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3910switch (message.Response.Status) 3915using var document = JsonDocument.Parse(message.Response.ContentStream); 3917return Response.FromValue(value, message.Response); 3920throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3959switch (message.Response.Status) 3964using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3966return Response.FromValue(value, message.Response); 3969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3994switch (message.Response.Status) 3999using var document = JsonDocument.Parse(message.Response.ContentStream); 4001return Response.FromValue(value, message.Response); 4004throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4043switch (message.Response.Status) 4048using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4050return Response.FromValue(value, message.Response); 4053throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4078switch (message.Response.Status) 4083using var document = JsonDocument.Parse(message.Response.ContentStream); 4085return Response.FromValue(value, message.Response); 4088throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4122switch (message.Response.Status) 4127using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4129return Response.FromValue(value, message.Response); 4132throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4152switch (message.Response.Status) 4157using var document = JsonDocument.Parse(message.Response.ContentStream); 4159return Response.FromValue(value, message.Response); 4162throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4201switch (message.Response.Status) 4206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4208return Response.FromValue(value, message.Response); 4211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4236switch (message.Response.Status) 4241using var document = JsonDocument.Parse(message.Response.ContentStream); 4243return Response.FromValue(value, message.Response); 4246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4285switch (message.Response.Status) 4290using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4292return Response.FromValue(value, message.Response); 4295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4320switch (message.Response.Status) 4325using var document = JsonDocument.Parse(message.Response.ContentStream); 4327return Response.FromValue(value, message.Response); 4330throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4368switch (message.Response.Status) 4373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4375return Response.FromValue(value, message.Response); 4378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4402switch (message.Response.Status) 4407using var document = JsonDocument.Parse(message.Response.ContentStream); 4409return Response.FromValue(value, message.Response); 4412throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4446switch (message.Response.Status) 4451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4453return Response.FromValue(value, message.Response); 4456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4476switch (message.Response.Status) 4481using var document = JsonDocument.Parse(message.Response.ContentStream); 4483return Response.FromValue(value, message.Response); 4486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4519switch (message.Response.Status) 4524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4526return Response.FromValue(value, message.Response); 4529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4548switch (message.Response.Status) 4553using var document = JsonDocument.Parse(message.Response.ContentStream); 4555return Response.FromValue(value, message.Response); 4558throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4596switch (message.Response.Status) 4601using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4603return Response.FromValue(value, message.Response); 4606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4630switch (message.Response.Status) 4635using var document = JsonDocument.Parse(message.Response.ContentStream); 4637return Response.FromValue(value, message.Response); 4640throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4678switch (message.Response.Status) 4683using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4685return Response.FromValue(value, message.Response); 4688throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4712switch (message.Response.Status) 4717using var document = JsonDocument.Parse(message.Response.ContentStream); 4719return Response.FromValue(value, message.Response); 4722throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4756switch (message.Response.Status) 4761using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4763return Response.FromValue(value, message.Response); 4766throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4786switch (message.Response.Status) 4791using var document = JsonDocument.Parse(message.Response.ContentStream); 4793return Response.FromValue(value, message.Response); 4796throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4835switch (message.Response.Status) 4840using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4842return Response.FromValue(value, message.Response); 4845throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4870switch (message.Response.Status) 4875using var document = JsonDocument.Parse(message.Response.ContentStream); 4877return Response.FromValue(value, message.Response); 4880throw _clientDiagnostics.CreateRequestFailedException(message.Response); 4919switch (message.Response.Status) 4924using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4926return Response.FromValue(value, message.Response); 4929throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4954switch (message.Response.Status) 4959using var document = JsonDocument.Parse(message.Response.ContentStream); 4961return Response.FromValue(value, message.Response); 4964throw _clientDiagnostics.CreateRequestFailedException(message.Response); 5003switch (message.Response.Status) 5008using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 5010return Response.FromValue(value, message.Response); 5013throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 5038switch (message.Response.Status) 5043using var document = JsonDocument.Parse(message.Response.ContentStream); 5045return Response.FromValue(value, message.Response); 5048throw _clientDiagnostics.CreateRequestFailedException(message.Response); 5082switch (message.Response.Status) 5087using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 5089return Response.FromValue(value, message.Response); 5092throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 5112switch (message.Response.Status) 5117using var document = JsonDocument.Parse(message.Response.ContentStream); 5119return Response.FromValue(value, message.Response); 5122throw _clientDiagnostics.CreateRequestFailedException(message.Response); 5161switch (message.Response.Status) 5166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 5168return Response.FromValue(value, message.Response); 5171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 5196switch (message.Response.Status) 5201using var document = JsonDocument.Parse(message.Response.ContentStream); 5203return Response.FromValue(value, message.Response); 5206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.AI.Personalizer (157)
Generated\EvaluationsRestClient.cs (32)
64switch (message.Response.Status) 67return message.Response; 69throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 86switch (message.Response.Status) 89return message.Response; 91throw _clientDiagnostics.CreateRequestFailedException(message.Response); 123switch (message.Response.Status) 128using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 130return Response.FromValue(value, message.Response); 133throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 214using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 259var headers = new EvaluationsCreateHeaders(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return ResponseWithHeaders.FromValue(value, headers, message.Response); 270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287var headers = new EvaluationsCreateHeaders(message.Response); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return ResponseWithHeaders.FromValue(value, headers, message.Response); 298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventsRestClient.cs (12)
73switch (message.Response.Status) 76return message.Response; 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 103return message.Response; 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 138switch (message.Response.Status) 141return message.Response; 143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 163return message.Response; 165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LogRestClient.cs (14)
55switch (message.Response.Status) 58return message.Response; 60throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 70switch (message.Response.Status) 73return message.Response; 75throw _clientDiagnostics.CreateRequestFailedException(message.Response); 99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 119switch (message.Response.Status) 124using var document = JsonDocument.Parse(message.Response.ContentStream); 126return Response.FromValue(value, message.Response); 129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelRestClient.cs (20)
57switch (message.Response.Status) 62return Response.FromValue(value, message.Response); 65throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 75switch (message.Response.Status) 80return Response.FromValue(value, message.Response); 83throw _clientDiagnostics.CreateRequestFailedException(message.Response); 107switch (message.Response.Status) 110return message.Response; 112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 125return message.Response; 127throw _clientDiagnostics.CreateRequestFailedException(message.Response); 151switch (message.Response.Status) 156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 158return Response.FromValue(value, message.Response); 161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MultiSlotEventsRestClient.cs (12)
73switch (message.Response.Status) 76return message.Response; 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 103return message.Response; 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 138switch (message.Response.Status) 141return message.Response; 143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 163return message.Response; 165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MultiSlotRestClient.cs (8)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyRestClient.cs (24)
56switch (message.Response.Status) 61using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 63return Response.FromValue(value, message.Response); 66throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 76switch (message.Response.Status) 81using var document = JsonDocument.Parse(message.Response.ContentStream); 83return Response.FromValue(value, message.Response); 86throw _clientDiagnostics.CreateRequestFailedException(message.Response); 121switch (message.Response.Status) 126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 128return Response.FromValue(value, message.Response); 131throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 202switch (message.Response.Status) 207using var document = JsonDocument.Parse(message.Response.ContentStream); 209return Response.FromValue(value, message.Response); 212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RankRestClient.cs (8)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceConfigurationRestClient.cs (22)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response); 128switch (message.Response.Status) 133using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 135return Response.FromValue(value, message.Response); 138throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 193switch (message.Response.Status) 196return message.Response; 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 218return message.Response; 220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.AI.TextAnalytics (125)
Generated\TextAnalyticsRestClient.cs (120)
70var headers = new TextAnalyticsAnalyzeHeaders(message.Response); 71switch (message.Response.Status) 74return ResponseWithHeaders.FromValue(headers, message.Response); 76throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 87var headers = new TextAnalyticsAnalyzeHeaders(message.Response); 88switch (message.Response.Status) 91return ResponseWithHeaders.FromValue(headers, message.Response); 93throw _clientDiagnostics.CreateRequestFailedException(message.Response); 141switch (message.Response.Status) 146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 148return Response.FromValue(value, message.Response); 151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 181throw _clientDiagnostics.CreateRequestFailedException(message.Response); 223switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 252using var document = JsonDocument.Parse(message.Response.ContentStream); 254return Response.FromValue(value, message.Response); 257throw _clientDiagnostics.CreateRequestFailedException(message.Response); 284var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response); 285switch (message.Response.Status) 288return ResponseWithHeaders.FromValue(headers, message.Response); 290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 301var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response); 302switch (message.Response.Status) 305return ResponseWithHeaders.FromValue(headers, message.Response); 307throw _clientDiagnostics.CreateRequestFailedException(message.Response); 358var headers = new TextAnalyticsHealthHeaders(message.Response); 359switch (message.Response.Status) 362return ResponseWithHeaders.FromValue(headers, message.Response); 364throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 384var headers = new TextAnalyticsHealthHeaders(message.Response); 385switch (message.Response.Status) 388return ResponseWithHeaders.FromValue(headers, message.Response); 390throw _clientDiagnostics.CreateRequestFailedException(message.Response); 446switch (message.Response.Status) 451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 453return Response.FromValue(value, message.Response); 456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487throw _clientDiagnostics.CreateRequestFailedException(message.Response); 556switch (message.Response.Status) 561using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 563return Response.FromValue(value, message.Response); 566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 592switch (message.Response.Status) 597using var document = JsonDocument.Parse(message.Response.ContentStream); 599return Response.FromValue(value, message.Response); 602throw _clientDiagnostics.CreateRequestFailedException(message.Response); 658switch (message.Response.Status) 663using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 665return Response.FromValue(value, message.Response); 668throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 689switch (message.Response.Status) 694using var document = JsonDocument.Parse(message.Response.ContentStream); 696return Response.FromValue(value, message.Response); 699throw _clientDiagnostics.CreateRequestFailedException(message.Response); 750switch (message.Response.Status) 755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 757return Response.FromValue(value, message.Response); 760throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 780switch (message.Response.Status) 785using var document = JsonDocument.Parse(message.Response.ContentStream); 787return Response.FromValue(value, message.Response); 790throw _clientDiagnostics.CreateRequestFailedException(message.Response); 841switch (message.Response.Status) 846using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 848return Response.FromValue(value, message.Response); 851throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 871switch (message.Response.Status) 876using var document = JsonDocument.Parse(message.Response.ContentStream); 878return Response.FromValue(value, message.Response); 881throw _clientDiagnostics.CreateRequestFailedException(message.Response); 942switch (message.Response.Status) 947using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 949return Response.FromValue(value, message.Response); 952throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 974switch (message.Response.Status) 979using var document = JsonDocument.Parse(message.Response.ContentStream); 981return Response.FromValue(value, message.Response); 984throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1017switch (message.Response.Status) 1022using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1024return Response.FromValue(value, message.Response); 1027throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1044switch (message.Response.Status) 1049using var document = JsonDocument.Parse(message.Response.ContentStream); 1051return Response.FromValue(value, message.Response); 1054throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1087switch (message.Response.Status) 1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1094return Response.FromValue(value, message.Response); 1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1114switch (message.Response.Status) 1119using var document = JsonDocument.Parse(message.Response.ContentStream); 1121return Response.FromValue(value, message.Response); 1124throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1156switch (message.Response.Status) 1161using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1163return Response.FromValue(value, message.Response); 1166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1183switch (message.Response.Status) 1188using var document = JsonDocument.Parse(message.Response.ContentStream); 1190return Response.FromValue(value, message.Response); 1193throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1225switch (message.Response.Status) 1230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1232return Response.FromValue(value, message.Response); 1235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1252switch (message.Response.Status) 1257using var document = JsonDocument.Parse(message.Response.ContentStream); 1259return Response.FromValue(value, message.Response); 1262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.AI.Translation.Document (111)
Generated\DocumentTranslationRestClient.cs (106)
79var headers = new DocumentTranslationStartTranslationHeaders(message.Response); 80switch (message.Response.Status) 83return ResponseWithHeaders.FromValue(headers, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112var headers = new DocumentTranslationStartTranslationHeaders(message.Response); 113switch (message.Response.Status) 116return ResponseWithHeaders.FromValue(headers, message.Response); 118throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return ResponseWithHeaders.FromValue(value, headers, message.Response); 235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 295var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 296switch (message.Response.Status) 301using var document = JsonDocument.Parse(message.Response.ContentStream); 303return ResponseWithHeaders.FromValue(value, headers, message.Response); 306throw _clientDiagnostics.CreateRequestFailedException(message.Response); 335var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response); 336switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return ResponseWithHeaders.FromValue(value, headers, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response); 359switch (message.Response.Status) 364using var document = JsonDocument.Parse(message.Response.ContentStream); 366return ResponseWithHeaders.FromValue(value, headers, message.Response); 369throw _clientDiagnostics.CreateRequestFailedException(message.Response); 398var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response); 399switch (message.Response.Status) 404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 406return ResponseWithHeaders.FromValue(value, headers, message.Response); 409throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 423var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return ResponseWithHeaders.FromValue(value, headers, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 466switch (message.Response.Status) 471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 473return Response.FromValue(value, message.Response); 476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 493switch (message.Response.Status) 498using var document = JsonDocument.Parse(message.Response.ContentStream); 500return Response.FromValue(value, message.Response); 503throw _clientDiagnostics.CreateRequestFailedException(message.Response); 609var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 610switch (message.Response.Status) 615using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 617return ResponseWithHeaders.FromValue(value, headers, message.Response); 620throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 679switch (message.Response.Status) 684using var document = JsonDocument.Parse(message.Response.ContentStream); 686return ResponseWithHeaders.FromValue(value, headers, message.Response); 689throw _clientDiagnostics.CreateRequestFailedException(message.Response); 716var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response); 717switch (message.Response.Status) 722using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 724return ResponseWithHeaders.FromValue(value, headers, message.Response); 727throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 740var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response); 741switch (message.Response.Status) 746using var document = JsonDocument.Parse(message.Response.ContentStream); 748return ResponseWithHeaders.FromValue(value, headers, message.Response); 751throw _clientDiagnostics.CreateRequestFailedException(message.Response); 778var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response); 779switch (message.Response.Status) 784using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 786return ResponseWithHeaders.FromValue(value, headers, message.Response); 789throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 802var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response); 803switch (message.Response.Status) 808using var document = JsonDocument.Parse(message.Response.ContentStream); 810return ResponseWithHeaders.FromValue(value, headers, message.Response); 813throw _clientDiagnostics.CreateRequestFailedException(message.Response); 837var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response); 838switch (message.Response.Status) 843using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 845return ResponseWithHeaders.FromValue(value, headers, message.Response); 848throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 858var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response); 859switch (message.Response.Status) 864using var document = JsonDocument.Parse(message.Response.ContentStream); 866return ResponseWithHeaders.FromValue(value, headers, message.Response); 869throw _clientDiagnostics.CreateRequestFailedException(message.Response); 950var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 951switch (message.Response.Status) 956using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 958return ResponseWithHeaders.FromValue(value, headers, message.Response); 961throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1028var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 1029switch (message.Response.Status) 1034using var document = JsonDocument.Parse(message.Response.ContentStream); 1036return ResponseWithHeaders.FromValue(value, headers, message.Response); 1039throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1118var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 1119switch (message.Response.Status) 1124using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1126return ResponseWithHeaders.FromValue(value, headers, message.Response); 1129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1194var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 1195switch (message.Response.Status) 1200using var document = JsonDocument.Parse(message.Response.ContentStream); 1202return ResponseWithHeaders.FromValue(value, headers, message.Response); 1205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Purview.Account (10)
Generated\PurviewAccountClient.cs (1)
1273return message.Response.Status switch
Generated\PurviewCollection.cs (2)
738return message.Response.Status switch 751return message.Response.Status switch
Generated\PurviewResourceSetRule.cs (2)
920return message.Response.Status switch 933return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Purview.Administration (12)
Generated\PurviewAccountClient.cs (1)
1253return message.Response.Status switch
Generated\PurviewCollection.cs (2)
713return message.Response.Status switch 726return message.Response.Status switch
Generated\PurviewMetadataPolicyClient.cs (1)
578return message.Response.Status switch
Generated\PurviewMetadataRolesClient.cs (1)
182return message.Response.Status switch
Generated\PurviewResourceSetRule.cs (2)
898return message.Response.Status switch 911return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Purview.Catalog (17)
Generated\PurviewCatalogClient.cs (1)
556return message.Response.Status switch
Generated\PurviewCollections.cs (1)
880return message.Response.Status switch
Generated\PurviewEntities.cs (2)
4036return message.Response.Status switch 4049return message.Response.Status switch
Generated\PurviewGlossaries.cs (3)
7506return message.Response.Status switch 7519return message.Response.Status switch 7532return message.Response.Status switch
Generated\PurviewLineages.cs (1)
366return message.Response.Status switch
Generated\PurviewRelationships.cs (2)
619return message.Response.Status switch 632return message.Response.Status switch
Generated\PurviewTypes.cs (2)
6583return message.Response.Status switch 6596return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Purview.Scanning (19)
Generated\PurviewClassificationRuleClient.cs (4)
704return message.Response.Status switch 717return message.Response.Status switch 731return message.Response.Status switch 745return message.Response.Status switch
Generated\PurviewDataSourceClient.cs (3)
1028return message.Response.Status switch 1042return message.Response.Status switch 1055return message.Response.Status switch
Generated\PurviewScanClient.cs (4)
2132return message.Response.Status switch 2145return message.Response.Status switch 2159return message.Response.Status switch 2173return message.Response.Status switch
Generated\PurviewScanningServiceClient.cs (3)
2174return message.Response.Status switch 2187return message.Response.Status switch 2201return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Synapse.AccessControl (8)
Generated\RoleAssignmentsClient.cs (2)
740return message.Response.Status switch 753return message.Response.Status switch
Generated\RoleDefinitionsClient.cs (1)
430return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Synapse.Artifacts (761)
Generated\BigDataPoolsRestClient.cs (16)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 119switch (message.Response.Status) 124using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 126return Response.FromValue(value, message.Response); 129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataFlowDebugSessionRestClient.cs (46)
68var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response); 69switch (message.Response.Status) 73return ResponseWithHeaders.FromValue(headers, message.Response); 75throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response); 93switch (message.Response.Status) 97return ResponseWithHeaders.FromValue(headers, message.Response); 99throw _clientDiagnostics.CreateRequestFailedException(message.Response); 123switch (message.Response.Status) 128using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 130return Response.FromValue(value, message.Response); 133throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 143switch (message.Response.Status) 148using var document = JsonDocument.Parse(message.Response.ContentStream); 150return Response.FromValue(value, message.Response); 153throw _clientDiagnostics.CreateRequestFailedException(message.Response); 188switch (message.Response.Status) 193using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 195return Response.FromValue(value, message.Response); 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 220using var document = JsonDocument.Parse(message.Response.ContentStream); 222return Response.FromValue(value, message.Response); 225throw _clientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 263return message.Response; 265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 285return message.Response; 287throw _clientDiagnostics.CreateRequestFailedException(message.Response); 322var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response); 323switch (message.Response.Status) 327return ResponseWithHeaders.FromValue(headers, message.Response); 329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 346var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response); 347switch (message.Response.Status) 351return ResponseWithHeaders.FromValue(headers, message.Response); 353throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 410switch (message.Response.Status) 415using var document = JsonDocument.Parse(message.Response.ContentStream); 417return Response.FromValue(value, message.Response); 420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataFlowRestClient.cs (42)
79switch (message.Response.Status) 83return message.Response; 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 108switch (message.Response.Status) 112return message.Response; 114throw _clientDiagnostics.CreateRequestFailedException(message.Response); 151switch (message.Response.Status) 156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 158return Response.FromValue(value, message.Response); 161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 179switch (message.Response.Status) 184using var document = JsonDocument.Parse(message.Response.ContentStream); 186return Response.FromValue(value, message.Response); 189throw _clientDiagnostics.CreateRequestFailedException(message.Response); 221switch (message.Response.Status) 226return message.Response; 228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 245switch (message.Response.Status) 250return message.Response; 252throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 359return Response.FromValue(value, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return Response.FromValue(value, message.Response); 382throw _clientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 439switch (message.Response.Status) 444using var document = JsonDocument.Parse(message.Response.ContentStream); 446return Response.FromValue(value, message.Response); 449throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatasetRestClient.cs (44)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 166return message.Response; 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((DatasetResource)null, message.Response); 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((DatasetResource)null, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response); 279switch (message.Response.Status) 284return message.Response; 286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308return message.Response; 310throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 356return message.Response; 358throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 384return message.Response; 386throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 443switch (message.Response.Status) 448using var document = JsonDocument.Parse(message.Response.ContentStream); 450return Response.FromValue(value, message.Response); 453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IntegrationRuntimesRestClient.cs (16)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 119switch (message.Response.Status) 124using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 126return Response.FromValue(value, message.Response); 129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\KqlScriptRestClient.cs (26)
74switch (message.Response.Status) 78return message.Response; 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 102switch (message.Response.Status) 106return message.Response; 108throw _clientDiagnostics.CreateRequestFailedException(message.Response); 140switch (message.Response.Status) 145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 167switch (message.Response.Status) 172using var document = JsonDocument.Parse(message.Response.ContentStream); 174return Response.FromValue(value, message.Response); 177throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238return message.Response; 240throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 310switch (message.Response.Status) 314return message.Response; 316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\KqlScriptsRestClient.cs (16)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 117switch (message.Response.Status) 122using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 124return Response.FromValue(value, message.Response); 127throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LibraryRestClient.cs (62)
58switch (message.Response.Status) 63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 65return Response.FromValue(value, message.Response); 68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 78switch (message.Response.Status) 83using var document = JsonDocument.Parse(message.Response.ContentStream); 85return Response.FromValue(value, message.Response); 88throw _clientDiagnostics.CreateRequestFailedException(message.Response); 121switch (message.Response.Status) 125return message.Response; 127throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 148return message.Response; 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue<object>(value, message.Response); 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue<object>(value, message.Response); 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue<object>(value, message.Response); 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue<object>(value, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response); 265switch (message.Response.Status) 270return message.Response; 272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294return message.Response; 296throw _clientDiagnostics.CreateRequestFailedException(message.Response); 328switch (message.Response.Status) 333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 335return Response.FromValue(value, message.Response); 338return Response.FromValue((LibraryResource)null, message.Response); 340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367return Response.FromValue((LibraryResource)null, message.Response); 369throw _clientDiagnostics.CreateRequestFailedException(message.Response); 401switch (message.Response.Status) 405return message.Response; 407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 428return message.Response; 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 478return message.Response; 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 506return message.Response; 508throw _clientDiagnostics.CreateRequestFailedException(message.Response); 538switch (message.Response.Status) 543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 545return Response.FromValue(value, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 565switch (message.Response.Status) 570using var document = JsonDocument.Parse(message.Response.ContentStream); 572return Response.FromValue(value, message.Response); 575throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServiceRestClient.cs (44)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 166return message.Response; 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((LinkedServiceResource)null, message.Response); 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((LinkedServiceResource)null, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response); 279switch (message.Response.Status) 284return message.Response; 286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308return message.Response; 310throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 356return message.Response; 358throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 384return message.Response; 386throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 443switch (message.Response.Status) 448using var document = JsonDocument.Parse(message.Response.ContentStream); 450return Response.FromValue(value, message.Response); 453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetastoreRestClient.cs (30)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 106switch (message.Response.Status) 111using var document = JsonDocument.Parse(message.Response.ContentStream); 113return Response.FromValue(value, message.Response); 116throw _clientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return Response.FromValue(value, message.Response); 158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 226switch (message.Response.Status) 231using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 233return Response.FromValue(value, message.Response); 236throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 263using var document = JsonDocument.Parse(message.Response.ContentStream); 265return Response.FromValue(value, message.Response); 268throw _clientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 303return message.Response; 305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 325return message.Response; 327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookOperationResultRestClient.cs (6)
63switch (message.Response.Status) 69return message.Response; 71throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 88switch (message.Response.Status) 94return message.Response; 96throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookRestClient.cs (60)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 111switch (message.Response.Status) 116using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 118return Response.FromValue(value, message.Response); 121throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 191return message.Response; 193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 220return message.Response; 222throw _clientDiagnostics.CreateRequestFailedException(message.Response); 259switch (message.Response.Status) 264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 266return Response.FromValue(value, message.Response); 269return Response.FromValue((NotebookResource)null, message.Response); 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((NotebookResource)null, message.Response); 301throw _clientDiagnostics.CreateRequestFailedException(message.Response); 333switch (message.Response.Status) 338return message.Response; 340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw _clientDiagnostics.CreateRequestFailedException(message.Response); 406switch (message.Response.Status) 410return message.Response; 412throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 434switch (message.Response.Status) 438return message.Response; 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw _clientDiagnostics.CreateRequestFailedException(message.Response); 537switch (message.Response.Status) 542using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 544return Response.FromValue(value, message.Response); 547throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRestClient.cs (52)
58switch (message.Response.Status) 63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 65return Response.FromValue(value, message.Response); 68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 78switch (message.Response.Status) 83using var document = JsonDocument.Parse(message.Response.ContentStream); 85return Response.FromValue(value, message.Response); 88throw _clientDiagnostics.CreateRequestFailedException(message.Response); 134switch (message.Response.Status) 138return message.Response; 140throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163switch (message.Response.Status) 167return message.Response; 169throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 213return Response.FromValue(value, message.Response); 216return Response.FromValue((PipelineResource)null, message.Response); 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 241using var document = JsonDocument.Parse(message.Response.ContentStream); 243return Response.FromValue(value, message.Response); 246return Response.FromValue((PipelineResource)null, message.Response); 248throw _clientDiagnostics.CreateRequestFailedException(message.Response); 280switch (message.Response.Status) 285return message.Response; 287throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 304switch (message.Response.Status) 309return message.Response; 311throw _clientDiagnostics.CreateRequestFailedException(message.Response); 353switch (message.Response.Status) 357return message.Response; 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 381switch (message.Response.Status) 385return message.Response; 387throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 480switch (message.Response.Status) 485using var document = JsonDocument.Parse(message.Response.ContentStream); 487return Response.FromValue(value, message.Response); 490throw _clientDiagnostics.CreateRequestFailedException(message.Response); 520switch (message.Response.Status) 525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 527return Response.FromValue(value, message.Response); 530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRunRestClient.cs (30)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 137switch (message.Response.Status) 142using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 144return Response.FromValue(value, message.Response); 147throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 169using var document = JsonDocument.Parse(message.Response.ContentStream); 171return Response.FromValue(value, message.Response); 174throw _clientDiagnostics.CreateRequestFailedException(message.Response); 223switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 265using var document = JsonDocument.Parse(message.Response.ContentStream); 267return Response.FromValue(value, message.Response); 270throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 311return message.Response; 313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 334return message.Response; 336throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkConfigurationRestClient.cs (44)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 166return message.Response; 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((SparkConfigurationResource)null, message.Response); 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((SparkConfigurationResource)null, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response); 279switch (message.Response.Status) 284return message.Response; 286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308return message.Response; 310throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 356return message.Response; 358throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 384return message.Response; 386throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 443switch (message.Response.Status) 448using var document = JsonDocument.Parse(message.Response.ContentStream); 450return Response.FromValue(value, message.Response); 453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkJobDefinitionRestClient.cs (56)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 166return message.Response; 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((SparkJobDefinitionResource)null, message.Response); 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((SparkJobDefinitionResource)null, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response); 279switch (message.Response.Status) 284return message.Response; 286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308return message.Response; 310throw _clientDiagnostics.CreateRequestFailedException(message.Response); 343switch (message.Response.Status) 347return message.Response; 349throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 366switch (message.Response.Status) 370return message.Response; 372throw _clientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 418return message.Response; 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 446return message.Response; 448throw _clientDiagnostics.CreateRequestFailedException(message.Response); 483switch (message.Response.Status) 487return message.Response; 489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 510return message.Response; 512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 542switch (message.Response.Status) 547using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 549return Response.FromValue(value, message.Response); 552throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 569switch (message.Response.Status) 574using var document = JsonDocument.Parse(message.Response.ContentStream); 576return Response.FromValue(value, message.Response); 579throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlPoolsRestClient.cs (16)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 119switch (message.Response.Status) 124using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 126return Response.FromValue(value, message.Response); 129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlScriptRestClient.cs (44)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 166return message.Response; 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((SqlScriptResource)null, message.Response); 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((SqlScriptResource)null, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response); 279switch (message.Response.Status) 284return message.Response; 286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308return message.Response; 310throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 356return message.Response; 358throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 384return message.Response; 386throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 443switch (message.Response.Status) 448using var document = JsonDocument.Parse(message.Response.ContentStream); 450return Response.FromValue(value, message.Response); 453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TriggerRestClient.cs (70)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 166return message.Response; 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((TriggerResource)null, message.Response); 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((TriggerResource)null, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response); 279switch (message.Response.Status) 284return message.Response; 286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308return message.Response; 310throw _clientDiagnostics.CreateRequestFailedException(message.Response); 343switch (message.Response.Status) 347return message.Response; 349throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 366switch (message.Response.Status) 370return message.Response; 372throw _clientDiagnostics.CreateRequestFailedException(message.Response); 405switch (message.Response.Status) 410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 412return Response.FromValue(value, message.Response); 415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 479return message.Response; 481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 498switch (message.Response.Status) 502return message.Response; 504throw _clientDiagnostics.CreateRequestFailedException(message.Response); 537switch (message.Response.Status) 540return message.Response; 542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 559switch (message.Response.Status) 562return message.Response; 564throw _clientDiagnostics.CreateRequestFailedException(message.Response); 597switch (message.Response.Status) 600return message.Response; 602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 619switch (message.Response.Status) 622return message.Response; 624throw _clientDiagnostics.CreateRequestFailedException(message.Response); 654switch (message.Response.Status) 659using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 661return Response.FromValue(value, message.Response); 664throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 681switch (message.Response.Status) 686using var document = JsonDocument.Parse(message.Response.ContentStream); 688return Response.FromValue(value, message.Response); 691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TriggerRunRestClient.cs (20)
73switch (message.Response.Status) 76return message.Response; 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 103return message.Response; 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 148return message.Response; 150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 175return message.Response; 177throw _clientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 219return Response.FromValue(value, message.Response); 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 244using var document = JsonDocument.Parse(message.Response.ContentStream); 246return Response.FromValue(value, message.Response); 249throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceGitRepoManagementRestClient.cs (8)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceRestClient.cs (8)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Synapse.ManagedPrivateEndpoints (43)
Generated\ManagedPrivateEndpointsRestClient.cs (38)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107switch (message.Response.Status) 112using var document = JsonDocument.Parse(message.Response.ContentStream); 114return Response.FromValue(value, message.Response); 117throw _clientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return Response.FromValue(value, message.Response); 175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 202switch (message.Response.Status) 207using var document = JsonDocument.Parse(message.Response.ContentStream); 209return Response.FromValue(value, message.Response); 212throw _clientDiagnostics.CreateRequestFailedException(message.Response); 250switch (message.Response.Status) 254return message.Response; 256throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278switch (message.Response.Status) 282return message.Response; 284throw _clientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 324return Response.FromValue(value, message.Response); 327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 349using var document = JsonDocument.Parse(message.Response.ContentStream); 351return Response.FromValue(value, message.Response); 354throw _clientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426using var document = JsonDocument.Parse(message.Response.ContentStream); 428return Response.FromValue(value, message.Response); 431throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Synapse.Monitoring (21)
Generated\MonitoringRestClient.cs (16)
60switch (message.Response.Status) 65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 67return Response.FromValue(value, message.Response); 70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 80switch (message.Response.Status) 85using var document = JsonDocument.Parse(message.Response.ContentStream); 87return Response.FromValue(value, message.Response); 90throw _clientDiagnostics.CreateRequestFailedException(message.Response); 129switch (message.Response.Status) 134using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 136return Response.FromValue(value, message.Response); 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Analytics.Synapse.Spark (103)
Generated\SparkBatchRestClient.cs (30)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return Response.FromValue(value, message.Response); 120throw _clientDiagnostics.CreateRequestFailedException(message.Response); 163switch (message.Response.Status) 168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 170return Response.FromValue(value, message.Response); 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 196using var document = JsonDocument.Parse(message.Response.ContentStream); 198return Response.FromValue(value, message.Response); 201throw _clientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 242return Response.FromValue(value, message.Response); 245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw _clientDiagnostics.CreateRequestFailedException(message.Response); 295switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 314return message.Response; 316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkSessionRestClient.cs (68)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return Response.FromValue(value, message.Response); 120throw _clientDiagnostics.CreateRequestFailedException(message.Response); 163switch (message.Response.Status) 168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 170return Response.FromValue(value, message.Response); 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 196using var document = JsonDocument.Parse(message.Response.ContentStream); 198return Response.FromValue(value, message.Response); 201throw _clientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 242return Response.FromValue(value, message.Response); 245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw _clientDiagnostics.CreateRequestFailedException(message.Response); 295switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 314return message.Response; 316throw _clientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 348return message.Response; 350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 361switch (message.Response.Status) 364return message.Response; 366throw _clientDiagnostics.CreateRequestFailedException(message.Response); 396switch (message.Response.Status) 401using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 403return Response.FromValue(value, message.Response); 406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 496switch (message.Response.Status) 501using var document = JsonDocument.Parse(message.Response.ContentStream); 503return Response.FromValue(value, message.Response); 506throw _clientDiagnostics.CreateRequestFailedException(message.Response); 538switch (message.Response.Status) 543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 545return Response.FromValue(value, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 560switch (message.Response.Status) 565using var document = JsonDocument.Parse(message.Response.ContentStream); 567return Response.FromValue(value, message.Response); 570throw _clientDiagnostics.CreateRequestFailedException(message.Response); 603switch (message.Response.Status) 608using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 610return Response.FromValue(value, message.Response); 613throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 625switch (message.Response.Status) 630using var document = JsonDocument.Parse(message.Response.ContentStream); 632return Response.FromValue(value, message.Response); 635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Communication.CallingServer (119)
Downloader\ContentDownloader.cs (6)
78switch (message.Response.Status) 84return Response.FromValue(value, message.Response); 87throw await _client._clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107switch (message.Response.Status) 113return Response.FromValue(value, message.Response); 116throw _client._clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CallConnectionsRestClient.cs (44)
107switch (message.Response.Status) 112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 114return Response.FromValue(value, message.Response); 117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 194return message.Response; 196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213switch (message.Response.Status) 216return message.Response; 218throw _clientDiagnostics.CreateRequestFailedException(message.Response); 273switch (message.Response.Status) 278using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 280return Response.FromValue(value, message.Response); 283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 310switch (message.Response.Status) 315using var document = JsonDocument.Parse(message.Response.ContentStream); 317return Response.FromValue(value, message.Response); 320throw _clientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 367using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 369return Response.FromValue(value, message.Response); 372throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 395using var document = JsonDocument.Parse(message.Response.ContentStream); 397return Response.FromValue(value, message.Response); 400throw _clientDiagnostics.CreateRequestFailedException(message.Response); 448switch (message.Response.Status) 453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 455return Response.FromValue(value, message.Response); 458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw _clientDiagnostics.CreateRequestFailedException(message.Response); 528switch (message.Response.Status) 531return message.Response; 533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 558return message.Response; 560throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerCallsRestClient.cs (64)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 116switch (message.Response.Status) 121using var document = JsonDocument.Parse(message.Response.ContentStream); 123return Response.FromValue(value, message.Response); 126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 168return message.Response; 170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 192switch (message.Response.Status) 195return message.Response; 197throw _clientDiagnostics.CreateRequestFailedException(message.Response); 245switch (message.Response.Status) 250using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 252return Response.FromValue(value, message.Response); 255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 276switch (message.Response.Status) 281using var document = JsonDocument.Parse(message.Response.ContentStream); 283return Response.FromValue(value, message.Response); 286throw _clientDiagnostics.CreateRequestFailedException(message.Response); 325switch (message.Response.Status) 330using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 332return Response.FromValue(value, message.Response); 335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367throw _clientDiagnostics.CreateRequestFailedException(message.Response); 406switch (message.Response.Status) 409return message.Response; 411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 433switch (message.Response.Status) 436return message.Response; 438throw _clientDiagnostics.CreateRequestFailedException(message.Response); 478switch (message.Response.Status) 481return message.Response; 483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 505switch (message.Response.Status) 508return message.Response; 510throw _clientDiagnostics.CreateRequestFailedException(message.Response); 550switch (message.Response.Status) 553return message.Response; 555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 577switch (message.Response.Status) 580return message.Response; 582throw _clientDiagnostics.CreateRequestFailedException(message.Response); 651switch (message.Response.Status) 656using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 658return Response.FromValue(value, message.Response); 661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 691switch (message.Response.Status) 696using var document = JsonDocument.Parse(message.Response.ContentStream); 698return Response.FromValue(value, message.Response); 701throw _clientDiagnostics.CreateRequestFailedException(message.Response); 756switch (message.Response.Status) 761using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 763return Response.FromValue(value, message.Response); 766throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 793switch (message.Response.Status) 798using var document = JsonDocument.Parse(message.Response.ContentStream); 800return Response.FromValue(value, message.Response); 803throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Communication.Chat (151)
Generated\ChatRestClient.cs (30)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw _clientDiagnostics.CreateRequestFailedException(message.Response); 159switch (message.Response.Status) 164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 166return Response.FromValue(value, message.Response); 169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181switch (message.Response.Status) 186using var document = JsonDocument.Parse(message.Response.ContentStream); 188return Response.FromValue(value, message.Response); 191throw _clientDiagnostics.CreateRequestFailedException(message.Response); 223switch (message.Response.Status) 226return message.Response; 228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 245switch (message.Response.Status) 248return message.Response; 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 287using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 289return Response.FromValue(value, message.Response); 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 316using var document = JsonDocument.Parse(message.Response.ContentStream); 318return Response.FromValue(value, message.Response); 321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ChatThreadRestClient.cs (116)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return Response.FromValue(value, message.Response); 120throw _clientDiagnostics.CreateRequestFailedException(message.Response); 163switch (message.Response.Status) 166return message.Response; 168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 190switch (message.Response.Status) 193return message.Response; 195throw _clientDiagnostics.CreateRequestFailedException(message.Response); 253switch (message.Response.Status) 258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 260return Response.FromValue(value, message.Response); 263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return Response.FromValue(value, message.Response); 298throw _clientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 348return Response.FromValue(value, message.Response); 351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 370switch (message.Response.Status) 375using var document = JsonDocument.Parse(message.Response.ContentStream); 377return Response.FromValue(value, message.Response); 380throw _clientDiagnostics.CreateRequestFailedException(message.Response); 419switch (message.Response.Status) 424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 426return Response.FromValue(value, message.Response); 429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 456using var document = JsonDocument.Parse(message.Response.ContentStream); 458return Response.FromValue(value, message.Response); 461throw _clientDiagnostics.CreateRequestFailedException(message.Response); 518switch (message.Response.Status) 521return message.Response; 523throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 550return message.Response; 552throw _clientDiagnostics.CreateRequestFailedException(message.Response); 591switch (message.Response.Status) 594return message.Response; 596throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 618switch (message.Response.Status) 621return message.Response; 623throw _clientDiagnostics.CreateRequestFailedException(message.Response); 666switch (message.Response.Status) 671using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 673return Response.FromValue(value, message.Response); 676throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 695switch (message.Response.Status) 700using var document = JsonDocument.Parse(message.Response.ContentStream); 702return Response.FromValue(value, message.Response); 705throw _clientDiagnostics.CreateRequestFailedException(message.Response); 753switch (message.Response.Status) 756return message.Response; 758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 779switch (message.Response.Status) 782return message.Response; 784throw _clientDiagnostics.CreateRequestFailedException(message.Response); 827switch (message.Response.Status) 832using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 834return Response.FromValue(value, message.Response); 837throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 859switch (message.Response.Status) 864using var document = JsonDocument.Parse(message.Response.ContentStream); 866return Response.FromValue(value, message.Response); 869throw _clientDiagnostics.CreateRequestFailedException(message.Response); 910switch (message.Response.Status) 913return message.Response; 915throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 933switch (message.Response.Status) 936return message.Response; 938throw _clientDiagnostics.CreateRequestFailedException(message.Response); 970switch (message.Response.Status) 975using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 977return Response.FromValue(value, message.Response); 980throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 997switch (message.Response.Status) 1002using var document = JsonDocument.Parse(message.Response.ContentStream); 1004return Response.FromValue(value, message.Response); 1007throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1049switch (message.Response.Status) 1052return message.Response; 1054throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1072switch (message.Response.Status) 1075return message.Response; 1077throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1114switch (message.Response.Status) 1119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1121return Response.FromValue(value, message.Response); 1124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1148switch (message.Response.Status) 1153using var document = JsonDocument.Parse(message.Response.ContentStream); 1155return Response.FromValue(value, message.Response); 1158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1195switch (message.Response.Status) 1200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1202return Response.FromValue(value, message.Response); 1205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1229switch (message.Response.Status) 1234using var document = JsonDocument.Parse(message.Response.ContentStream); 1236return Response.FromValue(value, message.Response); 1239throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1276switch (message.Response.Status) 1281using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1283return Response.FromValue(value, message.Response); 1286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1310switch (message.Response.Status) 1315using var document = JsonDocument.Parse(message.Response.ContentStream); 1317return Response.FromValue(value, message.Response); 1320throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Communication.Identity (41)
Generated\CommunicationIdentityRestClient.cs (36)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 139switch (message.Response.Status) 142return message.Response; 144throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 164return message.Response; 166throw _clientDiagnostics.CreateRequestFailedException(message.Response); 199switch (message.Response.Status) 202return message.Response; 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 224return message.Response; 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 269return Response.FromValue(value, message.Response); 272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299throw _clientDiagnostics.CreateRequestFailedException(message.Response); 342switch (message.Response.Status) 347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 349return Response.FromValue(value, message.Response); 352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 374switch (message.Response.Status) 379using var document = JsonDocument.Parse(message.Response.ContentStream); 381return Response.FromValue(value, message.Response); 384throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Communication.NetworkTraversal (13)
Generated\CommunicationNetworkTraversalRestClient.cs (8)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return Response.FromValue(value, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Communication.PhoneNumbers (85)
Generated\InternalPhoneNumbersRestClient.cs (80)
77var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response); 78switch (message.Response.Status) 81return ResponseWithHeaders.FromValue(headers, message.Response); 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response); 106switch (message.Response.Status) 109return ResponseWithHeaders.FromValue(headers, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 143switch (message.Response.Status) 148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 150return Response.FromValue(value, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 170switch (message.Response.Status) 175using var document = JsonDocument.Parse(message.Response.ContentStream); 177return Response.FromValue(value, message.Response); 180throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response); 214switch (message.Response.Status) 217return ResponseWithHeaders.FromValue(headers, message.Response); 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response); 231switch (message.Response.Status) 234return ResponseWithHeaders.FromValue(headers, message.Response); 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 268var headers = new PhoneNumbersGetOperationHeaders(message.Response); 269switch (message.Response.Status) 274using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 276return ResponseWithHeaders.FromValue(value, headers, message.Response); 279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 296var headers = new PhoneNumbersGetOperationHeaders(message.Response); 297switch (message.Response.Status) 302using var document = JsonDocument.Parse(message.Response.ContentStream); 304return ResponseWithHeaders.FromValue(value, headers, message.Response); 307throw _clientDiagnostics.CreateRequestFailedException(message.Response); 339switch (message.Response.Status) 342return message.Response; 344throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 361switch (message.Response.Status) 364return message.Response; 366throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response); 411switch (message.Response.Status) 414return ResponseWithHeaders.FromValue(headers, message.Response); 416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response); 436switch (message.Response.Status) 439return ResponseWithHeaders.FromValue(headers, message.Response); 441throw _clientDiagnostics.CreateRequestFailedException(message.Response); 473switch (message.Response.Status) 478using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 480return Response.FromValue(value, message.Response); 483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 500switch (message.Response.Status) 505using var document = JsonDocument.Parse(message.Response.ContentStream); 507return Response.FromValue(value, message.Response); 510throw _clientDiagnostics.CreateRequestFailedException(message.Response); 542var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response); 543switch (message.Response.Status) 546return ResponseWithHeaders.FromValue(headers, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 565var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response); 566switch (message.Response.Status) 569return ResponseWithHeaders.FromValue(headers, message.Response); 571throw _clientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 612return Response.FromValue(value, message.Response); 615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 627switch (message.Response.Status) 632using var document = JsonDocument.Parse(message.Response.ContentStream); 634return Response.FromValue(value, message.Response); 637throw _clientDiagnostics.CreateRequestFailedException(message.Response); 669switch (message.Response.Status) 674using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 676return Response.FromValue(value, message.Response); 679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 698switch (message.Response.Status) 703using var document = JsonDocument.Parse(message.Response.ContentStream); 705return Response.FromValue(value, message.Response); 708throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Communication.Sms (13)
Generated\SmsRestClient.cs (8)
88switch (message0.Response.Status) 93using var document = await JsonDocument.ParseAsync(message0.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message0.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message0.Response).ConfigureAwait(false); 126switch (message0.Response.Status) 131using var document = JsonDocument.Parse(message0.Response.ContentStream); 133return Response.FromValue(value, message0.Response); 136throw _clientDiagnostics.CreateRequestFailedException(message0.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Containers.ContainerRegistry (261)
Authentication\ContainerRegistryChallengeAuthenticationPolicy.cs (2)
86var service = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "service"); 87var scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope");
Generated\AuthenticationRestClient.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 190return Response.FromValue(value, message.Response); 193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226using var document = JsonDocument.Parse(message.Response.ContentStream); 228return Response.FromValue(value, message.Response); 231throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRegistryBlobRestClient.cs (88)
70var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response); 71switch (message.Response.Status) 76return ResponseWithHeaders.FromValue(value, headers, message.Response); 79return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response); 104switch (message.Response.Status) 109return ResponseWithHeaders.FromValue(value, headers, message.Response); 112return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 114throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response); 153switch (message.Response.Status) 157return ResponseWithHeaders.FromValue(headers, message.Response); 159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response); 182switch (message.Response.Status) 186return ResponseWithHeaders.FromValue(headers, message.Response); 188throw _clientDiagnostics.CreateRequestFailedException(message.Response); 226var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response); 227switch (message.Response.Status) 232return ResponseWithHeaders.FromValue(value, headers, message.Response); 235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response); 258switch (message.Response.Status) 263return ResponseWithHeaders.FromValue(value, headers, message.Response); 266throw _clientDiagnostics.CreateRequestFailedException(message.Response); 310var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response); 311switch (message.Response.Status) 314return ResponseWithHeaders.FromValue(headers, message.Response); 316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response); 344switch (message.Response.Status) 347return ResponseWithHeaders.FromValue(headers, message.Response); 349throw _clientDiagnostics.CreateRequestFailedException(message.Response); 380var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response); 381switch (message.Response.Status) 384return ResponseWithHeaders.FromValue(headers, message.Response); 386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 403var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response); 404switch (message.Response.Status) 407return ResponseWithHeaders.FromValue(headers, message.Response); 409throw _clientDiagnostics.CreateRequestFailedException(message.Response); 447var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response); 448switch (message.Response.Status) 451return ResponseWithHeaders.FromValue(headers, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 475var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response); 476switch (message.Response.Status) 479return ResponseWithHeaders.FromValue(headers, message.Response); 481throw _clientDiagnostics.CreateRequestFailedException(message.Response); 524var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response); 525switch (message.Response.Status) 528return ResponseWithHeaders.FromValue(headers, message.Response); 530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response); 554switch (message.Response.Status) 557return ResponseWithHeaders.FromValue(headers, message.Response); 559throw _clientDiagnostics.CreateRequestFailedException(message.Response); 590switch (message.Response.Status) 593return message.Response; 595throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 615return message.Response; 617throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response); 650switch (message.Response.Status) 653return ResponseWithHeaders.FromValue(headers, message.Response); 655throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response); 673switch (message.Response.Status) 676return ResponseWithHeaders.FromValue(headers, message.Response); 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 722var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response); 723switch (message.Response.Status) 728return ResponseWithHeaders.FromValue(value, headers, message.Response); 731throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 758var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response); 759switch (message.Response.Status) 764return ResponseWithHeaders.FromValue(value, headers, message.Response); 767throw _clientDiagnostics.CreateRequestFailedException(message.Response); 811var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response); 812switch (message.Response.Status) 815return ResponseWithHeaders.FromValue(headers, message.Response); 817throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 844var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response); 845switch (message.Response.Status) 848return ResponseWithHeaders.FromValue(headers, message.Response); 850throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRegistryRestClient.cs (150)
58switch (message.Response.Status) 61return message.Response; 63throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 73switch (message.Response.Status) 76return message.Response; 78throw _clientDiagnostics.CreateRequestFailedException(message.Response); 121switch (message.Response.Status) 126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 128return Response.FromValue(value, message.Response); 131throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 159using var document = JsonDocument.Parse(message.Response.ContentStream); 161return Response.FromValue(value, message.Response); 164throw _clientDiagnostics.CreateRequestFailedException(message.Response); 211var headers = new ContainerRegistryCreateManifestHeaders(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 219return ResponseWithHeaders.FromValue(value, headers, message.Response); 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 249var headers = new ContainerRegistryCreateManifestHeaders(message.Response); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return ResponseWithHeaders.FromValue(value, headers, message.Response); 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 369var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 370switch (message.Response.Status) 375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 377return ResponseWithHeaders.FromValue(value, headers, message.Response); 380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 392var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 393switch (message.Response.Status) 398using var document = JsonDocument.Parse(message.Response.ContentStream); 400return ResponseWithHeaders.FromValue(value, headers, message.Response); 403throw _clientDiagnostics.CreateRequestFailedException(message.Response); 438switch (message.Response.Status) 443using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 445return Response.FromValue(value, message.Response); 448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 510switch (message.Response.Status) 514return message.Response; 516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 533switch (message.Response.Status) 537return message.Response; 539throw _clientDiagnostics.CreateRequestFailedException(message.Response); 582switch (message.Response.Status) 587using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 589return Response.FromValue(value0, message.Response); 592throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 610switch (message.Response.Status) 615using var document = JsonDocument.Parse(message.Response.ContentStream); 617return Response.FromValue(value0, message.Response); 620throw _clientDiagnostics.CreateRequestFailedException(message.Response); 676var headers = new ContainerRegistryGetTagsHeaders(message.Response); 677switch (message.Response.Status) 682using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 684return ResponseWithHeaders.FromValue(value, headers, message.Response); 687throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 708var headers = new ContainerRegistryGetTagsHeaders(message.Response); 709switch (message.Response.Status) 714using var document = JsonDocument.Parse(message.Response.ContentStream); 716return ResponseWithHeaders.FromValue(value, headers, message.Response); 719throw _clientDiagnostics.CreateRequestFailedException(message.Response); 761switch (message.Response.Status) 766using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 768return Response.FromValue(value, message.Response); 771throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 793switch (message.Response.Status) 798using var document = JsonDocument.Parse(message.Response.ContentStream); 800return Response.FromValue(value, message.Response); 803throw _clientDiagnostics.CreateRequestFailedException(message.Response); 853switch (message.Response.Status) 858using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 860return Response.FromValue(value0, message.Response); 863throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 886switch (message.Response.Status) 891using var document = JsonDocument.Parse(message.Response.ContentStream); 893return Response.FromValue(value0, message.Response); 896throw _clientDiagnostics.CreateRequestFailedException(message.Response); 938switch (message.Response.Status) 942return message.Response; 944throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 966switch (message.Response.Status) 970return message.Response; 972throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1023var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 1024switch (message.Response.Status) 1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1031return ResponseWithHeaders.FromValue(value, headers, message.Response); 1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1054var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 1055switch (message.Response.Status) 1060using var document = JsonDocument.Parse(message.Response.ContentStream); 1062return ResponseWithHeaders.FromValue(value, headers, message.Response); 1065throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1107switch (message.Response.Status) 1112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1114return Response.FromValue(value, message.Response); 1117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1139switch (message.Response.Status) 1144using var document = JsonDocument.Parse(message.Response.ContentStream); 1146return Response.FromValue(value, message.Response); 1149throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1199switch (message.Response.Status) 1204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1206return Response.FromValue(value0, message.Response); 1209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1232switch (message.Response.Status) 1237using var document = JsonDocument.Parse(message.Response.ContentStream); 1239return Response.FromValue(value0, message.Response); 1242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1274var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 1275switch (message.Response.Status) 1280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1282return ResponseWithHeaders.FromValue(value, headers, message.Response); 1285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1304var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 1305switch (message.Response.Status) 1310using var document = JsonDocument.Parse(message.Response.ContentStream); 1312return ResponseWithHeaders.FromValue(value, headers, message.Response); 1315throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1354var headers = new ContainerRegistryGetTagsHeaders(message.Response); 1355switch (message.Response.Status) 1360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1362return ResponseWithHeaders.FromValue(value, headers, message.Response); 1365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1391var headers = new ContainerRegistryGetTagsHeaders(message.Response); 1392switch (message.Response.Status) 1397using var document = JsonDocument.Parse(message.Response.ContentStream); 1399return ResponseWithHeaders.FromValue(value, headers, message.Response); 1402throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1440var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 1441switch (message.Response.Status) 1446using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1448return ResponseWithHeaders.FromValue(value, headers, message.Response); 1451throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1476var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 1477switch (message.Response.Status) 1482using var document = JsonDocument.Parse(message.Response.ContentStream); 1484return ResponseWithHeaders.FromValue(value, headers, message.Response); 1487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Core (33)
HttpMessage.cs (1)
39/// Gets the <see cref="Response"/> associated with this message. Throws an exception if it wasn't set yet.
Pipeline\BearerTokenAuthenticationPolicy.cs (2)
132if (message.Response.Status == (int)HttpStatusCode.Unauthorized && message.Response.Headers.Contains(HttpHeader.Names.WwwAuthenticate))
Pipeline\HttpPipeline.cs (4)
117/// Invokes the pipeline asynchronously. After the task completes response would be set to the <see cref="HttpMessage.Response"/> property. 151/// Invokes the pipeline synchronously. After the task completes response would be set to the <see cref="HttpMessage.Response"/> property. 190return message.Response; 203return message.Response;
Pipeline\HttpPipelinePolicy.cs (2)
17/// Applies the policy to the <paramref name="message"/>. Implementers are expected to mutate <see cref="HttpMessage.Request"/> before calling <see cref="ProcessNextAsync"/> and observe the <see cref="HttpMessage.Response"/> changes after. 25/// Applies the policy to the <paramref name="message"/>. Implementers are expected to mutate <see cref="HttpMessage.Request"/> before calling <see cref="ProcessNextAsync"/> and observe the <see cref="HttpMessage.Response"/> changes after.
Pipeline\HttpPipelineTransport.cs (2)
15/// Sends the request contained by the <paramref name="message"/> and sets the <see cref="HttpMessage.Response"/> property to received response synchronously. 21/// Sends the request contained by the <paramref name="message"/> and sets the <see cref="HttpMessage.Response"/> property to received response asynchronously.
Pipeline\Internal\HttpPipelineTransportPolicy.cs (4)
27message.Response.Sanitizer = _sanitizer; 28message.Response.IsError = message.ResponseClassifier.IsErrorResponse(message); 37message.Response.Sanitizer = _sanitizer; 38message.Response.IsError = message.ResponseClassifier.IsErrorResponse(message);
Pipeline\Internal\LoggingPolicy.cs (1)
94Response response = message.Response;
Pipeline\Internal\RedirectPolicy.cs (3)
37Response response = message.Response; 39while ((redirectUri = GetUriForRedirect(request, message.Response)) != null) 83response = message.Response;
Pipeline\Internal\RequestActivityPolicy.cs (3)
83scope.AddAttribute("http.status_code", message.Response.Status, static i => i.ToString(CultureInfo.InvariantCulture)); 84if (message.Response.Headers.RequestId is string serviceRequestId) 90scope.AddAttribute("otel.status_code", message.Response.IsError ? "ERROR" : "UNSET");
Pipeline\Internal\ResponseBodyPolicy.cs (3)
70Stream? responseContentStream = message.Response.ContentStream; 97message.Response.ContentStream = bufferedStream; 119message.Response.ContentStream = new ReadTimeoutStream(responseContentStream, networkTimeout);
Pipeline\Internal\RetryPolicy.cs (6)
102else if (message.Response.IsError) 133message.Response.ContentStream?.Dispose(); 152if (message.Response == null) 157if (message.Response.TryGetHeader(RetryAfterMsHeaderName, out var retryAfterValue) || 158message.Response.TryGetHeader(XRetryAfterMsHeaderName, out retryAfterValue)) 166if (message.Response.TryGetHeader(RetryAfterHeaderName, out retryAfterValue))
ResponseClassifier.cs (2)
21switch (message.Response.Status) 59var statusKind = message.Response.Status / 100;
Azure.Core.Experimental.Tests (5)
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Core.Perf (2)
DownloadTest.cs (2)
32message.Response.ContentStream.CopyTo(Stream.Null, BufferSize); 42await message.Response.ContentStream.CopyToAsync(Stream.Null, BufferSize, cancellationToken);
Azure.Core.TestFramework (87)
Generated\TestProxyRestClient.cs (72)
64var headers = new TestProxyStartPlaybackHeaders(message.Response); 65switch (message.Response.Status) 70using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return ResponseWithHeaders.FromValue(value, headers, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97var headers = new TestProxyStartPlaybackHeaders(message.Response); 98switch (message.Response.Status) 103using var document = JsonDocument.Parse(message.Response.ContentStream); 110return ResponseWithHeaders.FromValue(value, headers, message.Response); 113throw _clientDiagnostics.CreateRequestFailedException(message.Response); 143switch (message.Response.Status) 146return message.Response; 148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165switch (message.Response.Status) 168return message.Response; 170throw _clientDiagnostics.CreateRequestFailedException(message.Response); 200var headers = new TestProxyStartRecordHeaders(message.Response); 201switch (message.Response.Status) 204return ResponseWithHeaders.FromValue(headers, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223var headers = new TestProxyStartRecordHeaders(message.Response); 224switch (message.Response.Status) 227return ResponseWithHeaders.FromValue(headers, message.Response); 229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 274switch (message.Response.Status) 277return message.Response; 279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 301switch (message.Response.Status) 304return message.Response; 306throw _clientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 348return message.Response; 350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 368switch (message.Response.Status) 371return message.Response; 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 415return message.Response; 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435switch (message.Response.Status) 438return message.Response; 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 479switch (message.Response.Status) 482return message.Response; 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 505return message.Response; 507throw _clientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 549return message.Response; 551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 569switch (message.Response.Status) 572return message.Response; 574throw _clientDiagnostics.CreateRequestFailedException(message.Response); 602switch (message.Response.Status) 605return message.Response; 607throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 618switch (message.Response.Status) 621return message.Response; 623throw _clientDiagnostics.CreateRequestFailedException(message.Response); 662switch (message.Response.Status) 665return message.Response; 667throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 685switch (message.Response.Status) 688return message.Response; 690throw _clientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 732return message.Response; 734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 755return message.Response; 757throw _clientDiagnostics.CreateRequestFailedException(message.Response);
MockTransport.cs (4)
94message.Response.ClientRequestId = request.ClientRequestId; 96if (message.Response.ContentStream != null && ExpectSyncPipeline != null) 98message.Response.ContentStream = new AsyncValidatingStream(!ExpectSyncPipeline.Value, message.Response.ContentStream);
PlaybackTransport.cs (2)
62message.Response.ClientRequestId = message.Request.ClientRequestId; 95message.Response.ClientRequestId = message.Request.ClientRequestId;
ProxyTransport.cs (2)
64if (message.Response.Headers.Contains("x-request-mismatch")) 66var streamReader = new StreamReader(message.Response.ContentStream);
RecordTransport.cs (1)
48RecordEntry recordEntry = CreateEntry(message.Request, message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
SyncAsyncPolicyTestBase.cs (1)
40return message.Response;
Azure.Core.Tests (33)
HttpPipelineFunctionalTests.cs (14)
97Assert.False(message.Response.ContentStream.CanSeek); 98Assert.Throws<InvalidOperationException>(() => { var content = message.Response.Content; }); 151Assert.AreEqual(message.Response.ContentStream.CanSeek, false); 152Assert.Throws<InvalidOperationException>(() => { var content = message.Response.Content; }); 272response = message.Response; 311response = message.Response; 351Assert.AreEqual(message.Response.Status, 201); 387Assert.AreEqual(message.Response.Status, 201); 466Assert.AreEqual(message.Response.Status, 201); 467Assert.AreEqual("Hello world!", await new StreamReader(message.Response.ContentStream).ReadToEndAsync()); 468Assert.AreEqual("Hello world!", message.Response.Content.ToString()); 569Assert.AreEqual(message.Response.Status, 200); 570var responseContentStream = message.Response.ContentStream; 571Assert.Throws<InvalidOperationException>(() => { var content = message.Response.Content; });
HttpPipelineMessageTest.cs (1)
94Assert.AreEqual(memoryStream.ToArray(), message.Response.Content.ToArray());
HttpPipelineTests.cs (1)
311return message.Response.Status == 500;
PipelineTestBase.cs (2)
31return message.Response; 50return message.Response;
RetryPolicyTestBase.cs (1)
338return Array.IndexOf(_retriableCodes, message.Response.Status) >= 0;
Shared\ARMChallengeAuthenticationPolicy.cs (2)
44var challenge = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "claims"); 59var challenge = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "claims");
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
TestClients\LowLevelClient\PetStoreClient.cs (7)
83return message.Response; 89return message.Response; 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121return message.Response; 128return message.Response; 132throw _clientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status)
Azure.Data.AppConfiguration (1)
SyncTokenPolicy.cs (1)
33if (message.Response.Headers.TryGetValues(SyncTokenHeader, out IEnumerable<string> rawSyncTokens))
Azure.Data.SchemaRegistry (45)
Generated\SchemaGroupsRestClient.cs (8)
61switch (message.Response.Status) 66using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 68return Response.FromValue(value, message.Response); 71throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 81switch (message.Response.Status) 86using var document = JsonDocument.Parse(message.Response.ContentStream); 88return Response.FromValue(value, message.Response); 91throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SchemaRestClient.cs (32)
70var headers = new SchemaGetByIdHeaders(message.Response); 71switch (message.Response.Status) 76return ResponseWithHeaders.FromValue(value, headers, message.Response); 79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 96var headers = new SchemaGetByIdHeaders(message.Response); 97switch (message.Response.Status) 102return ResponseWithHeaders.FromValue(value, headers, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 146switch (message.Response.Status) 151using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 153return Response.FromValue(value, message.Response); 156throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 178switch (message.Response.Status) 183using var document = JsonDocument.Parse(message.Response.ContentStream); 185return Response.FromValue(value, message.Response); 188throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241var headers = new SchemaQueryIdByContentHeaders(message.Response); 242switch (message.Response.Status) 245return ResponseWithHeaders.FromValue(headers, message.Response); 247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 279var headers = new SchemaQueryIdByContentHeaders(message.Response); 280switch (message.Response.Status) 283return ResponseWithHeaders.FromValue(headers, message.Response); 285throw _clientDiagnostics.CreateRequestFailedException(message.Response); 340var headers = new SchemaRegisterHeaders(message.Response); 341switch (message.Response.Status) 344return ResponseWithHeaders.FromValue(headers, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 381var headers = new SchemaRegisterHeaders(message.Response); 382switch (message.Response.Status) 385return ResponseWithHeaders.FromValue(headers, message.Response); 387throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Data.Tables (166)
Generated\ServiceRestClient.cs (28)
77var headers = new ServiceSetPropertiesHeaders(message.Response); 78switch (message.Response.Status) 81return ResponseWithHeaders.FromValue(headers, message.Response); 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101var headers = new ServiceSetPropertiesHeaders(message.Response); 102switch (message.Response.Status) 105return ResponseWithHeaders.FromValue(headers, message.Response); 107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 138var headers = new ServiceGetPropertiesHeaders(message.Response); 139switch (message.Response.Status) 144var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 149return ResponseWithHeaders.FromValue(value, headers, message.Response); 152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163var headers = new ServiceGetPropertiesHeaders(message.Response); 164switch (message.Response.Status) 169var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 174return ResponseWithHeaders.FromValue(value, headers, message.Response); 177throw _clientDiagnostics.CreateRequestFailedException(message.Response); 208var headers = new ServiceGetStatisticsHeaders(message.Response); 209switch (message.Response.Status) 214var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 219return ResponseWithHeaders.FromValue(value, headers, message.Response); 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233var headers = new ServiceGetStatisticsHeaders(message.Response); 234switch (message.Response.Status) 239var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 244return ResponseWithHeaders.FromValue(value, headers, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableRestClient.cs (104)
84var headers = new TableQueryHeaders(message.Response); 85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return ResponseWithHeaders.FromValue(value, headers, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107var headers = new TableQueryHeaders(message.Response); 108switch (message.Response.Status) 113using var document = JsonDocument.Parse(message.Response.ContentStream); 115return ResponseWithHeaders.FromValue(value, headers, message.Response); 118throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164var headers = new TableCreateHeaders(message.Response); 165switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return ResponseWithHeaders.FromValue(value, headers, message.Response); 175return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response); 177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 196var headers = new TableCreateHeaders(message.Response); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return ResponseWithHeaders.FromValue(value, headers, message.Response); 207return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response); 209throw _clientDiagnostics.CreateRequestFailedException(message.Response); 242var headers = new TableDeleteHeaders(message.Response); 243switch (message.Response.Status) 246return ResponseWithHeaders.FromValue(headers, message.Response); 248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265var headers = new TableDeleteHeaders(message.Response); 266switch (message.Response.Status) 269return ResponseWithHeaders.FromValue(headers, message.Response); 271throw _clientDiagnostics.CreateRequestFailedException(message.Response); 337var headers = new TableQueryEntitiesHeaders(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return ResponseWithHeaders.FromValue(value, headers, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369var headers = new TableQueryEntitiesHeaders(message.Response); 370switch (message.Response.Status) 375using var document = JsonDocument.Parse(message.Response.ContentStream); 377return ResponseWithHeaders.FromValue(value, headers, message.Response); 380throw _clientDiagnostics.CreateRequestFailedException(message.Response); 446var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response); 447switch (message.Response.Status) 452using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 459return ResponseWithHeaders.FromValue(value, headers, message.Response); 462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 491var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response); 492switch (message.Response.Status) 497using var document = JsonDocument.Parse(message.Response.ContentStream); 504return ResponseWithHeaders.FromValue(value, headers, message.Response); 507throw _clientDiagnostics.CreateRequestFailedException(message.Response); 584var headers = new TableUpdateEntityHeaders(message.Response); 585switch (message.Response.Status) 588return ResponseWithHeaders.FromValue(headers, message.Response); 590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 621var headers = new TableUpdateEntityHeaders(message.Response); 622switch (message.Response.Status) 625return ResponseWithHeaders.FromValue(headers, message.Response); 627throw _clientDiagnostics.CreateRequestFailedException(message.Response); 704var headers = new TableMergeEntityHeaders(message.Response); 705switch (message.Response.Status) 708return ResponseWithHeaders.FromValue(headers, message.Response); 710throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 741var headers = new TableMergeEntityHeaders(message.Response); 742switch (message.Response.Status) 745return ResponseWithHeaders.FromValue(headers, message.Response); 747throw _clientDiagnostics.CreateRequestFailedException(message.Response); 811var headers = new TableDeleteEntityHeaders(message.Response); 812switch (message.Response.Status) 815return ResponseWithHeaders.FromValue(headers, message.Response); 817throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 851var headers = new TableDeleteEntityHeaders(message.Response); 852switch (message.Response.Status) 855return ResponseWithHeaders.FromValue(headers, message.Response); 857throw _clientDiagnostics.CreateRequestFailedException(message.Response); 919var headers = new TableInsertEntityHeaders(message.Response); 920switch (message.Response.Status) 925using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 932return ResponseWithHeaders.FromValue(value, headers, message.Response); 935return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response); 937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 958var headers = new TableInsertEntityHeaders(message.Response); 959switch (message.Response.Status) 964using var document = JsonDocument.Parse(message.Response.ContentStream); 971return ResponseWithHeaders.FromValue(value, headers, message.Response); 974return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response); 976throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1014var headers = new TableGetAccessPolicyHeaders(message.Response); 1015switch (message.Response.Status) 1020var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1030return ResponseWithHeaders.FromValue(value, headers, message.Response); 1033throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051var headers = new TableGetAccessPolicyHeaders(message.Response); 1052switch (message.Response.Status) 1057var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1067return ResponseWithHeaders.FromValue(value, headers, message.Response); 1070throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1121var headers = new TableSetAccessPolicyHeaders(message.Response); 1122switch (message.Response.Status) 1125return ResponseWithHeaders.FromValue(headers, message.Response); 1127throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1146var headers = new TableSetAccessPolicyHeaders(message.Response); 1147switch (message.Response.Status) 1150return ResponseWithHeaders.FromValue(headers, message.Response); 1152throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
TableClient.cs (12)
504switch (message.Response.Status) 508return message.Response; 510throw _diagnostics.CreateRequestFailedException(message.Response); 534switch (message.Response.Status) 538return message.Response; 540throw _diagnostics.CreateRequestFailedException(message.Response); 1204switch (message.Response.Status) 1208return message.Response; 1210throw _diagnostics.CreateRequestFailedException(message.Response); 1247switch (message.Response.Status) 1251return message.Response; 1253throw _diagnostics.CreateRequestFailedException(message.Response);
TableRestClient.cs (10)
71switch (message.Response.Status) 76message.Response.ContentStream, 77message.Response.Headers.ContentType, 86return Response.FromValue(responses.ToList() as IReadOnlyList<Response>, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116message.Response.ContentStream, 117message.Response.Headers.ContentType, 126return Response.FromValue(responses.ToList() as IReadOnlyList<Response>, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response);
TableServiceClient.cs (6)
734switch (message.Response.Status) 738return message.Response; 740throw _diagnostics.CreateRequestFailedException(message.Response); 767switch (message.Response.Status) 771return message.Response; 773throw _diagnostics.CreateRequestFailedException(message.Response);
TableTransactionResult.cs (1)
39return message.Response;
Azure.DigitalTwins.Core (215)
Customized\DigitalTwinModelsRestClient.cs (14)
26switch (message.Response.Status) 33.ParseAsync(message.Response.ContentStream, default, cancellationToken) 41return Response.FromValue(value, message.Response); 44throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 57switch (message.Response.Status) 63using var document = JsonDocument.Parse(message.Response.ContentStream); 70return Response.FromValue(value, message.Response); 73throw _clientDiagnostics.CreateRequestFailedException(message.Response); 96return message.Response.Status switch 98204 => message.Response, 99_ => throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false), 122return message.Response.Status switch 124204 => message.Response, 125_ => throw _clientDiagnostics.CreateRequestFailedException(message.Response),
Customized\DigitalTwinsRestClient.cs (60)
69switch (message.Response.Status) 74return Response.FromValue(value, message.Response); 77return Response.FromValue<Stream>(null, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106return Response.FromValue(value, message.Response); 109return Response.FromValue<Stream>(null, message.Response); 112throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 140throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 165return message.Response; 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199return Response.FromValue(value, message.Response); 202throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 233return Response.FromValue(value, message.Response); 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 258return message.Response.Status switch 260204 => message.Response, 261_ => throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false), 283return message.Response.Status switch 285204 => message.Response, 286_ => throw _clientDiagnostics.CreateRequestFailedException(message.Response), 308switch (message.Response.Status) 312return message.Response; 315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 337switch (message.Response.Status) 341return message.Response; 344throw _clientDiagnostics.CreateRequestFailedException(message.Response); 370switch (message.Response.Status) 373return message.Response; 376throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 402switch (message.Response.Status) 405return message.Response; 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 442return message.Response; 445throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 479return message.Response; 482throw _clientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 509using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 511return Response.FromValue(value, message.Response); 514throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 543switch (message.Response.Status) 547using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 549return Response.FromValue(value, message.Response); 552throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 575switch (message.Response.Status) 579using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw _clientDiagnostics.CreateRequestFailedException(message.Response); 613switch (message.Response.Status) 617using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Customized\QueryRestClient.cs (10)
33var headers = new QueryQueryTwinsHeaders(message.Response); 34switch (message.Response.Status) 38using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 40return ResponseWithHeaders.FromValue(value, headers, message.Response); 43throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 65var headers = new QueryQueryTwinsHeaders(message.Response); 66switch (message.Response.Status) 70using var document = JsonDocument.Parse(message.Response.ContentStream); 72return ResponseWithHeaders.FromValue(value, headers, message.Response); 75throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinModelsRestClient.cs (44)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226using var document = JsonDocument.Parse(message.Response.ContentStream); 228return Response.FromValue(value, message.Response); 231throw _clientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 285return Response.FromValue(value, message.Response); 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 321using var document = JsonDocument.Parse(message.Response.ContentStream); 323return Response.FromValue(value, message.Response); 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 388return message.Response; 390throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425switch (message.Response.Status) 428return message.Response; 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 477return message.Response; 479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 511return message.Response; 513throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 598switch (message.Response.Status) 603using var document = JsonDocument.Parse(message.Response.ContentStream); 605return Response.FromValue(value, message.Response); 608throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinsRestClient.cs (46)
78switch (message.Response.Status) 83return Response.FromValue(value, message.Response); 86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 117return Response.FromValue(value, message.Response); 120throw _clientDiagnostics.CreateRequestFailedException(message.Response); 168switch (message.Response.Status) 171return message.Response; 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 202switch (message.Response.Status) 205return message.Response; 207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 289return Response.FromValue(value, message.Response); 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 329return Response.FromValue(value, message.Response); 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 415return message.Response; 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 454return message.Response; 456throw _clientDiagnostics.CreateRequestFailedException(message.Response); 548switch (message.Response.Status) 553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 555return Response.FromValue(value, message.Response); 558throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 695switch (message.Response.Status) 700return Response.FromValue(value, message.Response); 703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 735switch (message.Response.Status) 740return Response.FromValue(value, message.Response); 743throw _clientDiagnostics.CreateRequestFailedException(message.Response); 830switch (message.Response.Status) 835using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 837return Response.FromValue(value, message.Response); 840throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 871switch (message.Response.Status) 876using var document = JsonDocument.Parse(message.Response.ContentStream); 878return Response.FromValue(value, message.Response); 881throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventRoutesRestClient.cs (36)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 93switch (message.Response.Status) 98using var document = JsonDocument.Parse(message.Response.ContentStream); 100return Response.FromValue(value, message.Response); 103throw _clientDiagnostics.CreateRequestFailedException(message.Response); 142switch (message.Response.Status) 147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 149return Response.FromValue(value, message.Response); 152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 176switch (message.Response.Status) 181using var document = JsonDocument.Parse(message.Response.ContentStream); 183return Response.FromValue(value, message.Response); 186throw _clientDiagnostics.CreateRequestFailedException(message.Response); 236switch (message.Response.Status) 239return message.Response; 241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 269switch (message.Response.Status) 272return message.Response; 274throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 316return message.Response; 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 342switch (message.Response.Status) 345return message.Response; 347throw _clientDiagnostics.CreateRequestFailedException(message.Response); 386switch (message.Response.Status) 391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 393return Response.FromValue(value, message.Response); 396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 418switch (message.Response.Status) 423using var document = JsonDocument.Parse(message.Response.ContentStream); 425return Response.FromValue(value, message.Response); 428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Graph.Rbac (548)
Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 222return message.Response; 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 244return message.Response; 246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 280switch (message.Response.Status) 285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 287return Response.FromValue(value, message.Response); 290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 307switch (message.Response.Status) 312using var document = JsonDocument.Parse(message.Response.ContentStream); 314return Response.FromValue(value, message.Response); 317throw _clientDiagnostics.CreateRequestFailedException(message.Response); 360switch (message.Response.Status) 363return message.Response; 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 511return message.Response; 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 535switch (message.Response.Status) 538return message.Response; 540throw _clientDiagnostics.CreateRequestFailedException(message.Response); 581switch (message.Response.Status) 584return message.Response; 586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 611return message.Response; 613throw _clientDiagnostics.CreateRequestFailedException(message.Response); 648switch (message.Response.Status) 653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 655return Response.FromValue(value, message.Response); 658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 675switch (message.Response.Status) 680using var document = JsonDocument.Parse(message.Response.ContentStream); 682return Response.FromValue(value, message.Response); 685throw _clientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 732return message.Response; 734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 759return message.Response; 761throw _clientDiagnostics.CreateRequestFailedException(message.Response); 796switch (message.Response.Status) 801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 803return Response.FromValue(value, message.Response); 806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 823switch (message.Response.Status) 828using var document = JsonDocument.Parse(message.Response.ContentStream); 830return Response.FromValue(value, message.Response); 833throw _clientDiagnostics.CreateRequestFailedException(message.Response); 877switch (message.Response.Status) 880return message.Response; 882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 904switch (message.Response.Status) 907return message.Response; 909throw _clientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 951return Response.FromValue(value, message.Response); 954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 971switch (message.Response.Status) 976using var document = JsonDocument.Parse(message.Response.ContentStream); 978return Response.FromValue(value, message.Response); 981throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1015switch (message.Response.Status) 1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1022return Response.FromValue(value, message.Response); 1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1042switch (message.Response.Status) 1047using var document = JsonDocument.Parse(message.Response.ContentStream); 1049return Response.FromValue(value, message.Response); 1052throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1087switch (message.Response.Status) 1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1094return Response.FromValue(value, message.Response); 1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1119switch (message.Response.Status) 1124using var document = JsonDocument.Parse(message.Response.ContentStream); 1126return Response.FromValue(value, message.Response); 1129throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1159switch (message.Response.Status) 1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1166return Response.FromValue(value, message.Response); 1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1186switch (message.Response.Status) 1191using var document = JsonDocument.Parse(message.Response.ContentStream); 1193return Response.FromValue(value, message.Response); 1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw _clientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 285return Response.FromValue(value, message.Response); 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310using var document = JsonDocument.Parse(message.Response.ContentStream); 312return Response.FromValue(value, message.Response); 315throw _clientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 352return Response.FromValue(value, message.Response); 355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return Response.FromValue(value, message.Response); 382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DomainsRestOperations.cs (16)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 167return message.Response; 169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 194return message.Response; 196throw _clientDiagnostics.CreateRequestFailedException(message.Response); 240switch (message.Response.Status) 243return message.Response; 245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 270return message.Response; 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 309switch (message.Response.Status) 314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 316return Response.FromValue(value, message.Response); 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 384return Response.FromValue(value, message.Response); 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 398switch (message.Response.Status) 403using var document = JsonDocument.Parse(message.Response.ContentStream); 405return Response.FromValue(value, message.Response); 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 475using var document = JsonDocument.Parse(message.Response.ContentStream); 477return Response.FromValue(value, message.Response); 480throw _clientDiagnostics.CreateRequestFailedException(message.Response); 514switch (message.Response.Status) 519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 521return Response.FromValue(value, message.Response); 524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 541switch (message.Response.Status) 546using var document = JsonDocument.Parse(message.Response.ContentStream); 548return Response.FromValue(value, message.Response); 551throw _clientDiagnostics.CreateRequestFailedException(message.Response); 585switch (message.Response.Status) 588return message.Response; 590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 663return Response.FromValue(value, message.Response); 666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 688switch (message.Response.Status) 693using var document = JsonDocument.Parse(message.Response.ContentStream); 695return Response.FromValue(value, message.Response); 698throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw _clientDiagnostics.CreateRequestFailedException(message.Response); 814switch (message.Response.Status) 817return message.Response; 819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 841switch (message.Response.Status) 844return message.Response; 846throw _clientDiagnostics.CreateRequestFailedException(message.Response); 887switch (message.Response.Status) 890return message.Response; 892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 914switch (message.Response.Status) 917return message.Response; 919throw _clientDiagnostics.CreateRequestFailedException(message.Response); 953switch (message.Response.Status) 958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 960return Response.FromValue(value, message.Response); 963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 980switch (message.Response.Status) 985using var document = JsonDocument.Parse(message.Response.ContentStream); 987return Response.FromValue(value, message.Response); 990throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1024switch (message.Response.Status) 1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1031return Response.FromValue(value, message.Response); 1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1056using var document = JsonDocument.Parse(message.Response.ContentStream); 1058return Response.FromValue(value, message.Response); 1061throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1096switch (message.Response.Status) 1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1103return Response.FromValue(value, message.Response); 1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1128switch (message.Response.Status) 1133using var document = JsonDocument.Parse(message.Response.ContentStream); 1135return Response.FromValue(value, message.Response); 1138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1168switch (message.Response.Status) 1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1175return Response.FromValue(value, message.Response); 1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1195switch (message.Response.Status) 1200using var document = JsonDocument.Parse(message.Response.ContentStream); 1202return Response.FromValue(value, message.Response); 1205throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1235switch (message.Response.Status) 1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1242return Response.FromValue(value, message.Response); 1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1262switch (message.Response.Status) 1267using var document = JsonDocument.Parse(message.Response.ContentStream); 1269return Response.FromValue(value, message.Response); 1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 213return message.Response; 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 235return message.Response; 237throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return Response.FromValue(value, message.Response); 281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw _clientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 370using var document = JsonDocument.Parse(message.Response.ContentStream); 372return Response.FromValue(value, message.Response); 375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 157switch (message.Response.Status) 162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 164return Response.FromValue(value, message.Response); 167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 231return Response.FromValue(value, message.Response); 234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228switch (message.Response.Status) 231return message.Response; 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 297return message.Response; 299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 319return message.Response; 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 387using var document = JsonDocument.Parse(message.Response.ContentStream); 389return Response.FromValue(value, message.Response); 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 499switch (message.Response.Status) 504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 506return Response.FromValue(value, message.Response); 509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response); 580switch (message.Response.Status) 583return message.Response; 585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 647switch (message.Response.Status) 652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 654return Response.FromValue(value, message.Response); 657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw _clientDiagnostics.CreateRequestFailedException(message.Response); 728switch (message.Response.Status) 731return message.Response; 733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755switch (message.Response.Status) 758return message.Response; 760throw _clientDiagnostics.CreateRequestFailedException(message.Response); 794switch (message.Response.Status) 799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 801return Response.FromValue(value, message.Response); 804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 821switch (message.Response.Status) 826using var document = JsonDocument.Parse(message.Response.ContentStream); 828return Response.FromValue(value, message.Response); 831throw _clientDiagnostics.CreateRequestFailedException(message.Response); 866switch (message.Response.Status) 871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 873return Response.FromValue(value, message.Response); 876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 898switch (message.Response.Status) 903using var document = JsonDocument.Parse(message.Response.ContentStream); 905return Response.FromValue(value, message.Response); 908throw _clientDiagnostics.CreateRequestFailedException(message.Response); 938switch (message.Response.Status) 943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 945return Response.FromValue(value, message.Response); 948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 965switch (message.Response.Status) 970using var document = JsonDocument.Parse(message.Response.ContentStream); 972return Response.FromValue(value, message.Response); 975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 138return Response.FromValue(value, message.Response); 141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 269return Response.FromValue(value, message.Response); 272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 329return message.Response; 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 368return message.Response; 370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 443return Response.FromValue(value, message.Response); 446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 468switch (message.Response.Status) 473using var document = JsonDocument.Parse(message.Response.ContentStream); 475return Response.FromValue(value, message.Response); 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 512switch (message.Response.Status) 517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 519return Response.FromValue(value, message.Response); 522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 539switch (message.Response.Status) 544using var document = JsonDocument.Parse(message.Response.ContentStream); 546return Response.FromValue(value, message.Response); 549throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 586return Response.FromValue(value, message.Response); 589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.Identity (3)
CredentialPipeline.cs (1)
74return base.IsRetriableResponse(message) || message.Response.Status == 404;
ManagedIdentitySource.cs (2)
41return await HandleResponseAsync(async, context, message.Response, cancellationToken).ConfigureAwait(false); 154return message.Response.Status switch
Azure.IoT.DeviceUpdate (385)
Generated\DeploymentsRestClient.cs (78)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 88switch (message.Response.Status) 93using var document = JsonDocument.Parse(message.Response.ContentStream); 95return Response.FromValue(value, message.Response); 98throw _clientDiagnostics.CreateRequestFailedException(message.Response); 132switch (message.Response.Status) 137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 139return Response.FromValue(value, message.Response); 142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 159switch (message.Response.Status) 164using var document = JsonDocument.Parse(message.Response.ContentStream); 166return Response.FromValue(value, message.Response); 169throw _clientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 219return Response.FromValue(value, message.Response); 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 290return message.Response; 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 309switch (message.Response.Status) 312return message.Response; 314throw _clientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 381using var document = JsonDocument.Parse(message.Response.ContentStream); 383return Response.FromValue(value, message.Response); 386throw _clientDiagnostics.CreateRequestFailedException(message.Response); 426switch (message.Response.Status) 431using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 433return Response.FromValue(value, message.Response); 436throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 499switch (message.Response.Status) 504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 506return Response.FromValue(value, message.Response); 509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response); 571switch (message.Response.Status) 576using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 578return Response.FromValue(value, message.Response); 581throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 598switch (message.Response.Status) 603using var document = JsonDocument.Parse(message.Response.ContentStream); 605return Response.FromValue(value, message.Response); 608throw _clientDiagnostics.CreateRequestFailedException(message.Response); 640switch (message.Response.Status) 645using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 647return Response.FromValue(value, message.Response); 650throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 673using var document = JsonDocument.Parse(message.Response.ContentStream); 675return Response.FromValue(value, message.Response); 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 748switch (message.Response.Status) 753using var document = JsonDocument.Parse(message.Response.ContentStream); 755return Response.FromValue(value, message.Response); 758throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DevicesRestClient.cs (174)
62switch (message.Response.Status) 67using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 69return Response.FromValue(value, message.Response); 72throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 82switch (message.Response.Status) 87using var document = JsonDocument.Parse(message.Response.ContentStream); 89return Response.FromValue(value, message.Response); 92throw _clientDiagnostics.CreateRequestFailedException(message.Response); 126switch (message.Response.Status) 131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 133return Response.FromValue(value, message.Response); 136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 158using var document = JsonDocument.Parse(message.Response.ContentStream); 160return Response.FromValue(value, message.Response); 163throw _clientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 205return Response.FromValue(value, message.Response); 208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue(value, message.Response); 235throw _clientDiagnostics.CreateRequestFailedException(message.Response); 270switch (message.Response.Status) 275using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 277return Response.FromValue(value, message.Response); 280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 297switch (message.Response.Status) 302using var document = JsonDocument.Parse(message.Response.ContentStream); 304return Response.FromValue(value, message.Response); 307throw _clientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 364using var document = JsonDocument.Parse(message.Response.ContentStream); 366return Response.FromValue(value, message.Response); 369throw _clientDiagnostics.CreateRequestFailedException(message.Response); 403switch (message.Response.Status) 408using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 410return Response.FromValue(value, message.Response); 413throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 466switch (message.Response.Status) 471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 473return Response.FromValue(value, message.Response); 476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 486switch (message.Response.Status) 491using var document = JsonDocument.Parse(message.Response.ContentStream); 493return Response.FromValue(value, message.Response); 496throw _clientDiagnostics.CreateRequestFailedException(message.Response); 522switch (message.Response.Status) 527using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 529return Response.FromValue(value, message.Response); 532throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 542switch (message.Response.Status) 547using var document = JsonDocument.Parse(message.Response.ContentStream); 549return Response.FromValue(value, message.Response); 552throw _clientDiagnostics.CreateRequestFailedException(message.Response); 586switch (message.Response.Status) 591using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 593return Response.FromValue(value, message.Response); 596throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 613switch (message.Response.Status) 618using var document = JsonDocument.Parse(message.Response.ContentStream); 620return Response.FromValue(value, message.Response); 623throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 656return Response.FromValue(value, message.Response); 659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 669switch (message.Response.Status) 674using var document = JsonDocument.Parse(message.Response.ContentStream); 676return Response.FromValue(value, message.Response); 679throw _clientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 720return Response.FromValue(value, message.Response); 723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 740switch (message.Response.Status) 745using var document = JsonDocument.Parse(message.Response.ContentStream); 747return Response.FromValue(value, message.Response); 750throw _clientDiagnostics.CreateRequestFailedException(message.Response); 793switch (message.Response.Status) 798using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 800return Response.FromValue(value, message.Response); 803throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 825switch (message.Response.Status) 830using var document = JsonDocument.Parse(message.Response.ContentStream); 832return Response.FromValue(value, message.Response); 835throw _clientDiagnostics.CreateRequestFailedException(message.Response); 868switch (message.Response.Status) 872return message.Response; 874throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 891switch (message.Response.Status) 895return message.Response; 897throw _clientDiagnostics.CreateRequestFailedException(message.Response); 932switch (message.Response.Status) 937using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 939return Response.FromValue(value, message.Response); 942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 959switch (message.Response.Status) 964using var document = JsonDocument.Parse(message.Response.ContentStream); 966return Response.FromValue(value, message.Response); 969throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1009switch (message.Response.Status) 1014using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1016return Response.FromValue(value, message.Response); 1019throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1037switch (message.Response.Status) 1042using var document = JsonDocument.Parse(message.Response.ContentStream); 1044return Response.FromValue(value, message.Response); 1047throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1078switch (message.Response.Status) 1083using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1085return Response.FromValue(value, message.Response); 1088throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1105switch (message.Response.Status) 1110using var document = JsonDocument.Parse(message.Response.ContentStream); 1112return Response.FromValue(value, message.Response); 1115throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1151switch (message.Response.Status) 1156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1158return Response.FromValue(value, message.Response); 1161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1183switch (message.Response.Status) 1188using var document = JsonDocument.Parse(message.Response.ContentStream); 1190return Response.FromValue(value, message.Response); 1193throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1229switch (message.Response.Status) 1234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1236return Response.FromValue(value, message.Response); 1239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1261switch (message.Response.Status) 1266using var document = JsonDocument.Parse(message.Response.ContentStream); 1268return Response.FromValue(value, message.Response); 1271throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1303switch (message.Response.Status) 1308using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1310return Response.FromValue(value, message.Response); 1313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1331switch (message.Response.Status) 1336using var document = JsonDocument.Parse(message.Response.ContentStream); 1338return Response.FromValue(value, message.Response); 1341throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1372switch (message.Response.Status) 1377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1379return Response.FromValue(value, message.Response); 1382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1399switch (message.Response.Status) 1404using var document = JsonDocument.Parse(message.Response.ContentStream); 1406return Response.FromValue(value, message.Response); 1409throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1440switch (message.Response.Status) 1445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1447return Response.FromValue(value, message.Response); 1450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1467switch (message.Response.Status) 1472using var document = JsonDocument.Parse(message.Response.ContentStream); 1474return Response.FromValue(value, message.Response); 1477throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1514switch (message.Response.Status) 1519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1521return Response.FromValue(value, message.Response); 1524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1547switch (message.Response.Status) 1552using var document = JsonDocument.Parse(message.Response.ContentStream); 1554return Response.FromValue(value, message.Response); 1557throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UpdatesRestClient.cs (128)
73var headers = new UpdatesImportUpdateHeaders(message.Response); 74switch (message.Response.Status) 77return ResponseWithHeaders.FromValue(headers, message.Response); 79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 96var headers = new UpdatesImportUpdateHeaders(message.Response); 97switch (message.Response.Status) 100return ResponseWithHeaders.FromValue(headers, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 155switch (message.Response.Status) 160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 162return Response.FromValue(value, message.Response); 165return Response.FromValue((Update)null, message.Response); 167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 195switch (message.Response.Status) 200using var document = JsonDocument.Parse(message.Response.ContentStream); 202return Response.FromValue(value, message.Response); 205return Response.FromValue((Update)null, message.Response); 207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 254var headers = new UpdatesDeleteUpdateHeaders(message.Response); 255switch (message.Response.Status) 258return ResponseWithHeaders.FromValue(headers, message.Response); 260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287var headers = new UpdatesDeleteUpdateHeaders(message.Response); 288switch (message.Response.Status) 291return ResponseWithHeaders.FromValue(headers, message.Response); 293throw _clientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 326return Response.FromValue(value, message.Response); 329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 344using var document = JsonDocument.Parse(message.Response.ContentStream); 346return Response.FromValue(value, message.Response); 349throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 411switch (message.Response.Status) 416using var document = JsonDocument.Parse(message.Response.ContentStream); 418return Response.FromValue(value, message.Response); 421throw _clientDiagnostics.CreateRequestFailedException(message.Response); 463switch (message.Response.Status) 468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 470return Response.FromValue(value, message.Response); 473throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 591switch (message.Response.Status) 596using var document = JsonDocument.Parse(message.Response.ContentStream); 598return Response.FromValue(value, message.Response); 601throw _clientDiagnostics.CreateRequestFailedException(message.Response); 661switch (message.Response.Status) 666using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 668return Response.FromValue(value, message.Response); 671return Response.FromValue((File)null, message.Response); 673throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 706switch (message.Response.Status) 711using var document = JsonDocument.Parse(message.Response.ContentStream); 713return Response.FromValue(value, message.Response); 716return Response.FromValue((File)null, message.Response); 718throw _clientDiagnostics.CreateRequestFailedException(message.Response); 754switch (message.Response.Status) 759using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 761return Response.FromValue(value, message.Response); 764throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 776switch (message.Response.Status) 781using var document = JsonDocument.Parse(message.Response.ContentStream); 783return Response.FromValue(value, message.Response); 786throw _clientDiagnostics.CreateRequestFailedException(message.Response); 825var headers = new UpdatesGetOperationHeaders(message.Response); 826switch (message.Response.Status) 831using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 833return ResponseWithHeaders.FromValue(value, headers, message.Response); 836return ResponseWithHeaders.FromValue((Models.Operation)null, headers, message.Response); 838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 856var headers = new UpdatesGetOperationHeaders(message.Response); 857switch (message.Response.Status) 862using var document = JsonDocument.Parse(message.Response.ContentStream); 864return ResponseWithHeaders.FromValue(value, headers, message.Response); 867return ResponseWithHeaders.FromValue((Models.Operation)null, headers, message.Response); 869throw _clientDiagnostics.CreateRequestFailedException(message.Response); 900switch (message.Response.Status) 905using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 907return Response.FromValue(value, message.Response); 910throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 927switch (message.Response.Status) 932using var document = JsonDocument.Parse(message.Response.ContentStream); 934return Response.FromValue(value, message.Response); 937throw _clientDiagnostics.CreateRequestFailedException(message.Response); 973switch (message.Response.Status) 978using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 980return Response.FromValue(value, message.Response); 983throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1005switch (message.Response.Status) 1010using var document = JsonDocument.Parse(message.Response.ContentStream); 1012return Response.FromValue(value, message.Response); 1015throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1056switch (message.Response.Status) 1061using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1063return Response.FromValue(value, message.Response); 1066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1093switch (message.Response.Status) 1098using var document = JsonDocument.Parse(message.Response.ContentStream); 1100return Response.FromValue(value, message.Response); 1103throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1149switch (message.Response.Status) 1154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1156return Response.FromValue(value, message.Response); 1159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1191switch (message.Response.Status) 1196using var document = JsonDocument.Parse(message.Response.ContentStream); 1198return Response.FromValue(value, message.Response); 1201throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1234switch (message.Response.Status) 1239using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1241return Response.FromValue(value, message.Response); 1244throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1263switch (message.Response.Status) 1268using var document = JsonDocument.Parse(message.Response.ContentStream); 1270return Response.FromValue(value, message.Response); 1273throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.IoT.Hub.Service (299)
Customized\JobsRestClient.cs (10)
23switch (message.Response.Status) 28using var document = JsonDocument.Parse(message.Response.ContentStream); 37return Response.FromValue(value, message.Response); 40return Response.FromValue<string>(null, message.Response); 43throw _clientDiagnostics.CreateRequestFailedException(message.Response); 56switch (message.Response.Status) 61using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 70return Response.FromValue(value, message.Response); 73return Response.FromValue<string>(null, message.Response); 76throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
Generated\BulkRegistryRestClient.cs (8)
77switch (message.Response.Status) 83using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 85return Response.FromValue(value, message.Response); 88throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105switch (message.Response.Status) 111using var document = JsonDocument.Parse(message.Response.ContentStream); 113return Response.FromValue(value, message.Response); 116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CloudToDeviceMessagesRestClient.cs (26)
69switch (message.Response.Status) 74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 76return Response.FromValue(value, message.Response); 79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 96switch (message.Response.Status) 101using var document = JsonDocument.Parse(message.Response.ContentStream); 103return Response.FromValue(value, message.Response); 106throw _clientDiagnostics.CreateRequestFailedException(message.Response); 129switch (message.Response.Status) 133return message.Response; 135throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 149return message.Response; 151throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 185return message.Response; 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 204switch (message.Response.Status) 207return message.Response; 209throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 244return message.Response; 246throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 263switch (message.Response.Status) 266return message.Response; 268throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ConfigurationRestClient.cs (44)
69switch (message.Response.Status) 74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 76return Response.FromValue(value, message.Response); 79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 96switch (message.Response.Status) 101using var document = JsonDocument.Parse(message.Response.ContentStream); 103return Response.FromValue(value, message.Response); 106throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 160return Response.FromValue(value, message.Response); 163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 192using var document = JsonDocument.Parse(message.Response.ContentStream); 194return Response.FromValue(value, message.Response); 197throw _clientDiagnostics.CreateRequestFailedException(message.Response); 233switch (message.Response.Status) 236return message.Response; 238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 259return message.Response; 261throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 302return Response.FromValue(value, message.Response); 305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 321using var document = JsonDocument.Parse(message.Response.ContentStream); 328return Response.FromValue(value, message.Response); 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 366switch (message.Response.Status) 371using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 373return Response.FromValue(value, message.Response); 376throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 393switch (message.Response.Status) 398using var document = JsonDocument.Parse(message.Response.ContentStream); 400return Response.FromValue(value, message.Response); 403throw _clientDiagnostics.CreateRequestFailedException(message.Response); 444switch (message.Response.Status) 447return message.Response; 449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471switch (message.Response.Status) 474return message.Response; 476throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DevicesRestClient.cs (62)
66switch (message.Response.Status) 71using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 78return Response.FromValue(value, message.Response); 81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 139switch (message.Response.Status) 144using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 146return Response.FromValue(value, message.Response); 149throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 260using var document = JsonDocument.Parse(message.Response.ContentStream); 262return Response.FromValue(value, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 304return message.Response; 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 327return message.Response; 329throw _clientDiagnostics.CreateRequestFailedException(message.Response); 361switch (message.Response.Status) 366using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 368return Response.FromValue(value, message.Response); 371throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 393using var document = JsonDocument.Parse(message.Response.ContentStream); 395return Response.FromValue(value, message.Response); 398throw _clientDiagnostics.CreateRequestFailedException(message.Response); 444switch (message.Response.Status) 449using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 451return Response.FromValue(value, message.Response); 454throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487throw _clientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 540return Response.FromValue(value, message.Response); 543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw _clientDiagnostics.CreateRequestFailedException(message.Response); 618switch (message.Response.Status) 623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 625return Response.FromValue(value, message.Response); 628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 650switch (message.Response.Status) 655using var document = JsonDocument.Parse(message.Response.ContentStream); 657return Response.FromValue(value, message.Response); 660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestClient.cs (56)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 99switch (message.Response.Status) 104using var document = JsonDocument.Parse(message.Response.ContentStream); 106return Response.FromValue(value, message.Response); 109throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 145return Response.FromValue(value, message.Response); 148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 158switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 170return Response.FromValue(value, message.Response); 173throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 237using var document = JsonDocument.Parse(message.Response.ContentStream); 239return Response.FromValue(value, message.Response); 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 274switch (message.Response.Status) 279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 281return Response.FromValue(value, message.Response); 284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 301switch (message.Response.Status) 306using var document = JsonDocument.Parse(message.Response.ContentStream); 308return Response.FromValue(value, message.Response); 311throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 359return Response.FromValue(value, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 384switch (message.Response.Status) 389using var document = JsonDocument.Parse(message.Response.ContentStream); 391return Response.FromValue(value, message.Response); 394throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 498switch (message.Response.Status) 503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 505return Response.FromValue(value, message.Response); 508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 520switch (message.Response.Status) 525using var document = JsonDocument.Parse(message.Response.ContentStream); 527return Response.FromValue(value, message.Response); 530throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModulesRestClient.cs (62)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 108switch (message.Response.Status) 113using var document = JsonDocument.Parse(message.Response.ContentStream); 115return Response.FromValue(value, message.Response); 118throw _clientDiagnostics.CreateRequestFailedException(message.Response); 171switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 214using var document = JsonDocument.Parse(message.Response.ContentStream); 216return Response.FromValue(value, message.Response); 219throw _clientDiagnostics.CreateRequestFailedException(message.Response); 272switch (message.Response.Status) 277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 279return Response.FromValue(value, message.Response); 282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 310switch (message.Response.Status) 315using var document = JsonDocument.Parse(message.Response.ContentStream); 317return Response.FromValue(value, message.Response); 320throw _clientDiagnostics.CreateRequestFailedException(message.Response); 353switch (message.Response.Status) 358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 365return Response.FromValue(value, message.Response); 368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 385switch (message.Response.Status) 390using var document = JsonDocument.Parse(message.Response.ContentStream); 397return Response.FromValue(value, message.Response); 400throw _clientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 446return Response.FromValue(value, message.Response); 449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471switch (message.Response.Status) 476using var document = JsonDocument.Parse(message.Response.ContentStream); 478return Response.FromValue(value, message.Response); 481throw _clientDiagnostics.CreateRequestFailedException(message.Response); 534switch (message.Response.Status) 540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 542return Response.FromValue(value, message.Response); 545throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 573switch (message.Response.Status) 579using var document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw _clientDiagnostics.CreateRequestFailedException(message.Response); 627switch (message.Response.Status) 630return message.Response; 632throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 655switch (message.Response.Status) 658return message.Response; 660throw _clientDiagnostics.CreateRequestFailedException(message.Response); 709switch (message.Response.Status) 714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 716return Response.FromValue(value, message.Response); 719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueryRestClient.cs (10)
81var headers = new QueryGetTwinsHeaders(message.Response); 82switch (message.Response.Status) 87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return ResponseWithHeaders.FromValue(value, headers, message.Response); 97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 116var headers = new QueryGetTwinsHeaders(message.Response); 117switch (message.Response.Status) 122using var document = JsonDocument.Parse(message.Response.ContentStream); 129return ResponseWithHeaders.FromValue(value, headers, message.Response); 132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\StatisticsRestClient.cs (16)
60switch (message.Response.Status) 65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 67return Response.FromValue(value, message.Response); 70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 80switch (message.Response.Status) 85using var document = JsonDocument.Parse(message.Response.ContentStream); 87return Response.FromValue(value, message.Response); 90throw _clientDiagnostics.CreateRequestFailedException(message.Response); 114switch (message.Response.Status) 119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 121return Response.FromValue(value, message.Response); 124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.IoT.ModelsRepository (6)
Fetchers\HttpModelFetcher.cs (6)
171switch (message.Response.Status) 175return GetContent(message.Response.ContentStream); 178throw _clientDiagnostics.CreateRequestFailedException(message.Response); 199switch (message.Response.Status) 203return await GetContentAsync(message.Response.ContentStream, cancellationToken).ConfigureAwait(false); 206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.IoT.TimeSeriesInsights (109)
Generated\ModelSettingsRestClient.cs (16)
65switch (message.Response.Status) 70using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 72return Response.FromValue(value, message.Response); 75throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 86switch (message.Response.Status) 91using var document = JsonDocument.Parse(message.Response.ContentStream); 93return Response.FromValue(value, message.Response); 96throw _clientDiagnostics.CreateRequestFailedException(message.Response); 137switch (message.Response.Status) 142using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 144return Response.FromValue(value, message.Response); 147throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165switch (message.Response.Status) 170using var document = JsonDocument.Parse(message.Response.ContentStream); 172return Response.FromValue(value, message.Response); 175throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueryRestClient.cs (24)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return Response.FromValue(value, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return Response.FromValue(value, message.Response); 158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 177switch (message.Response.Status) 182using var document = JsonDocument.Parse(message.Response.ContentStream); 184return Response.FromValue(value, message.Response); 187throw _clientDiagnostics.CreateRequestFailedException(message.Response); 238switch (message.Response.Status) 243using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 245return Response.FromValue(value, message.Response); 248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 268switch (message.Response.Status) 273using var document = JsonDocument.Parse(message.Response.ContentStream); 275return Response.FromValue(value, message.Response); 278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesHierarchiesRestClient.cs (16)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return Response.FromValue(value, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 143switch (message.Response.Status) 148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 150return Response.FromValue(value, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesInstancesRestClient.cs (32)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return Response.FromValue(value, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 143switch (message.Response.Status) 148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 150return Response.FromValue(value, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 181throw _clientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 313return Response.FromValue(value, message.Response); 316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesTypesRestClient.cs (16)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return Response.FromValue(value, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 143switch (message.Response.Status) 148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 150return Response.FromValue(value, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Media.VideoAnalyzer.Edge (5)
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Messaging.EventGrid (39)
Customization\EventGridPublisherClient.cs (16)
121return message.Response.Status switch 123200 => message.Response, 125throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 126throw _clientDiagnostics.CreateRequestFailedException(message.Response) 190return message.Response.Status switch 192200 => message.Response, 194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 195throw _clientDiagnostics.CreateRequestFailedException(message.Response) 257return message.Response.Status switch 259200 => message.Response, 261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 262throw _clientDiagnostics.CreateRequestFailedException(message.Response) 327return message.Response.Status switch 329200 => message.Response, 331throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 332throw _clientDiagnostics.CreateRequestFailedException(message.Response)
Generated\EventGridRestClient.cs (18)
78switch (message.Response.Status) 81return message.Response; 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105switch (message.Response.Status) 108return message.Response; 110throw _clientDiagnostics.CreateRequestFailedException(message.Response); 155switch (message.Response.Status) 158return message.Response; 160throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 182switch (message.Response.Status) 185return message.Response; 187throw _clientDiagnostics.CreateRequestFailedException(message.Response); 232switch (message.Response.Status) 235return message.Response; 237throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 262return message.Response; 264throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Messaging.WebPubSub (10)
Generated\HealthApiClient.cs (1)
107return message.Response.Status switch
Generated\WebPubSubServiceClient.cs (4)
2067return message.Response.Status switch 2080return message.Response.Status switch 2093return message.Response.Status switch 2106return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.MixedReality.Authentication (15)
Generated\MixedRealityStsRestClient.cs (10)
68var headers = new MixedRealityStsGetTokenHeaders(message.Response); 69switch (message.Response.Status) 74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 76return ResponseWithHeaders.FromValue(value, headers, message.Response); 79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 91var headers = new MixedRealityStsGetTokenHeaders(message.Response); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return ResponseWithHeaders.FromValue(value, headers, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.MixedReality.ObjectAnchors.Conversion (35)
Generated\BlobUploadEndpointRestClient.cs (10)
68var headers = new BlobUploadEndpointGetHeaders(message.Response); 69switch (message.Response.Status) 74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 76return ResponseWithHeaders.FromValue(value, headers, message.Response); 79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 91var headers = new BlobUploadEndpointGetHeaders(message.Response); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return ResponseWithHeaders.FromValue(value, headers, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IngestionJobRestClient.cs (20)
78var headers = new IngestionJobCreateHeaders(message.Response); 79switch (message.Response.Status) 84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 86return ResponseWithHeaders.FromValue(value, headers, message.Response); 89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103var headers = new IngestionJobCreateHeaders(message.Response); 104switch (message.Response.Status) 109using var document = JsonDocument.Parse(message.Response.ContentStream); 111return ResponseWithHeaders.FromValue(value, headers, message.Response); 114throw _clientDiagnostics.CreateRequestFailedException(message.Response); 151var headers = new IngestionJobGetHeaders(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return ResponseWithHeaders.FromValue(value, headers, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175var headers = new IngestionJobGetHeaders(message.Response); 176switch (message.Response.Status) 181using var document = JsonDocument.Parse(message.Response.ContentStream); 183return ResponseWithHeaders.FromValue(value, headers, message.Response); 186throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.MixedReality.RemoteRendering (95)
Generated\RemoteRenderingRestClient.cs (90)
79var headers = new RemoteRenderingCreateConversionHeaders(message.Response); 80switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return ResponseWithHeaders.FromValue(value, headers, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 114var headers = new RemoteRenderingCreateConversionHeaders(message.Response); 115switch (message.Response.Status) 121using var document = JsonDocument.Parse(message.Response.ContentStream); 123return ResponseWithHeaders.FromValue(value, headers, message.Response); 126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 161var headers = new RemoteRenderingGetConversionHeaders(message.Response); 162switch (message.Response.Status) 167using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 169return ResponseWithHeaders.FromValue(value, headers, message.Response); 172throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 190var headers = new RemoteRenderingGetConversionHeaders(message.Response); 191switch (message.Response.Status) 196using var document = JsonDocument.Parse(message.Response.ContentStream); 198return ResponseWithHeaders.FromValue(value, headers, message.Response); 201throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228var headers = new RemoteRenderingListConversionsHeaders(message.Response); 229switch (message.Response.Status) 234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 236return ResponseWithHeaders.FromValue(value, headers, message.Response); 239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250var headers = new RemoteRenderingListConversionsHeaders(message.Response); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return ResponseWithHeaders.FromValue(value, headers, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response); 305var headers = new RemoteRenderingCreateSessionHeaders(message.Response); 306switch (message.Response.Status) 312using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 314return ResponseWithHeaders.FromValue(value, headers, message.Response); 317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340var headers = new RemoteRenderingCreateSessionHeaders(message.Response); 341switch (message.Response.Status) 347using var document = JsonDocument.Parse(message.Response.ContentStream); 349return ResponseWithHeaders.FromValue(value, headers, message.Response); 352throw _clientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 394return Response.FromValue(value, message.Response); 397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 415switch (message.Response.Status) 420using var document = JsonDocument.Parse(message.Response.ContentStream); 422return Response.FromValue(value, message.Response); 425throw _clientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 548var headers = new RemoteRenderingStopSessionHeaders(message.Response); 549switch (message.Response.Status) 552return ResponseWithHeaders.FromValue(headers, message.Response); 554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572var headers = new RemoteRenderingStopSessionHeaders(message.Response); 573switch (message.Response.Status) 576return ResponseWithHeaders.FromValue(headers, message.Response); 578throw _clientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 612return Response.FromValue(value, message.Response); 615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 626switch (message.Response.Status) 631using var document = JsonDocument.Parse(message.Response.ContentStream); 633return Response.FromValue(value, message.Response); 636throw _clientDiagnostics.CreateRequestFailedException(message.Response); 667var headers = new RemoteRenderingListConversionsHeaders(message.Response); 668switch (message.Response.Status) 673using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 675return ResponseWithHeaders.FromValue(value, headers, message.Response); 678throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 696var headers = new RemoteRenderingListConversionsHeaders(message.Response); 697switch (message.Response.Status) 702using var document = JsonDocument.Parse(message.Response.ContentStream); 704return ResponseWithHeaders.FromValue(value, headers, message.Response); 707throw _clientDiagnostics.CreateRequestFailedException(message.Response); 738switch (message.Response.Status) 743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 745return Response.FromValue(value, message.Response); 748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 766switch (message.Response.Status) 771using var document = JsonDocument.Parse(message.Response.ContentStream); 773return Response.FromValue(value, message.Response); 776throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Monitor.OpenTelemetry.Exporter (17)
Generated\ApplicationInsightsRestClient.cs (8)
51switch (message.Response.Status) 57using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 59return Response.FromValue(value, message.Response); 62throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 85using var document = JsonDocument.Parse(message.Response.ContentStream); 87return Response.FromValue(value, message.Response); 90throw _clientDiagnostics.CreateRequestFailedException(message.Response);
IngestionResponsePolicy.cs (4)
38var httpStatus = message?.Response?.Status; 75var httpStatus = message?.Response?.Status; 108using (JsonDocument document = JsonDocument.Parse(message.Response.ContentStream, default)) 111Response.FromValue(value, message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Monitor.Query (65)
Generated\MetricDefinitionsRestClient.cs (8)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 98switch (message.Response.Status) 103using var document = JsonDocument.Parse(message.Response.ContentStream); 105return Response.FromValue(value, message.Response); 108throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricNamespacesRestClient.cs (8)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 98switch (message.Response.Status) 103using var document = JsonDocument.Parse(message.Response.ContentStream); 105return Response.FromValue(value, message.Response); 108throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricsRestClient.cs (8)
118switch (message.Response.Status) 123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 125return Response.FromValue(value, message.Response); 128throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueryRestClient.cs (24)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 108switch (message.Response.Status) 113using var document = JsonDocument.Parse(message.Response.ContentStream); 115return Response.FromValue(value, message.Response); 118throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 171return Response.FromValue(value, message.Response); 174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 248return Response.FromValue(value, message.Response); 251throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 268switch (message.Response.Status) 273using var document = JsonDocument.Parse(message.Response.ContentStream); 275return Response.FromValue(value, message.Response); 278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
LogsQueryClient.cs (12)
532switch (message.Response.Status) 536using var document = JsonDocument.Parse(message.Response.ContentStream); 538return ConvertBatchResponse(value, message.Response); 544throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 548throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false) : 585JsonDocument.Parse(message.Response.ContentStream, default); 594throw value.CreateExceptionForErrorResponse(message.Response.Status); 597return Response.FromValue(value, message.Response); 603throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Quantum.Jobs (83)
Generated\JobsRestClient.cs (38)
71switch (message.Response.Status) 76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 78return Response.FromValue(value, message.Response); 81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 91switch (message.Response.Status) 96using var document = JsonDocument.Parse(message.Response.ContentStream); 98return Response.FromValue(value, message.Response); 101throw _clientDiagnostics.CreateRequestFailedException(message.Response); 138switch (message.Response.Status) 143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 145return Response.FromValue(value, message.Response); 148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165switch (message.Response.Status) 170using var document = JsonDocument.Parse(message.Response.ContentStream); 172return Response.FromValue(value, message.Response); 175throw _clientDiagnostics.CreateRequestFailedException(message.Response); 221switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 254switch (message.Response.Status) 260using var document = JsonDocument.Parse(message.Response.ContentStream); 262return Response.FromValue(value, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 302switch (message.Response.Status) 305return message.Response; 307throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 327return message.Response; 329throw _clientDiagnostics.CreateRequestFailedException(message.Response); 359switch (message.Response.Status) 364using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 366return Response.FromValue(value, message.Response); 369throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ProvidersRestClient.cs (16)
71switch (message.Response.Status) 76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 78return Response.FromValue(value, message.Response); 81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 91switch (message.Response.Status) 96using var document = JsonDocument.Parse(message.Response.ContentStream); 98return Response.FromValue(value, message.Response); 101throw _clientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 138return Response.FromValue(value, message.Response); 141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 158switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 165return Response.FromValue(value, message.Response); 168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QuotasRestClient.cs (16)
71switch (message.Response.Status) 76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 78return Response.FromValue(value, message.Response); 81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 91switch (message.Response.Status) 96using var document = JsonDocument.Parse(message.Response.ContentStream); 98return Response.FromValue(value, message.Response); 101throw _clientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 138return Response.FromValue(value, message.Response); 141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 158switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 165return Response.FromValue(value, message.Response); 168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\StorageRestClient.cs (8)
82switch (message.Response.Status) 87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 89return Response.FromValue(value, message.Response); 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager (1023)
ManagementGroup\PseudoGenerated\RestOperations\ManagementGroupsRestOperations.cs (72)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 117using var document = JsonDocument.Parse(message.Response.ContentStream); 119return Response.FromValue(value, message.Response); 122throw _clientDiagnostics.CreateRequestFailedException(message.Response); 178switch (message.Response.Status) 183using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 185return Response.FromValue(value, message.Response); 188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 212switch (message.Response.Status) 217using var document = JsonDocument.Parse(message.Response.ContentStream); 219return Response.FromValue(value, message.Response); 222throw _clientDiagnostics.CreateRequestFailedException(message.Response); 273var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); 274switch (message.Response.Status) 278return ResponseWithHeaders.FromValue(headers, message.Response); 280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 307var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response); 308switch (message.Response.Status) 312return ResponseWithHeaders.FromValue(headers, message.Response); 314throw _clientDiagnostics.CreateRequestFailedException(message.Response); 364switch (message.Response.Status) 369using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 371return Response.FromValue(value, message.Response); 374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 400switch (message.Response.Status) 405using var document = JsonDocument.Parse(message.Response.ContentStream); 407return Response.FromValue(value, message.Response); 410throw _clientDiagnostics.CreateRequestFailedException(message.Response); 452var headers = new ManagementGroupsDeleteHeaders(message.Response); 453switch (message.Response.Status) 457return ResponseWithHeaders.FromValue(headers, message.Response); 459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481var headers = new ManagementGroupsDeleteHeaders(message.Response); 482switch (message.Response.Status) 486return ResponseWithHeaders.FromValue(headers, message.Response); 488throw _clientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 546return Response.FromValue(value, message.Response); 549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 575switch (message.Response.Status) 580using var document = JsonDocument.Parse(message.Response.ContentStream); 582return Response.FromValue(value, message.Response); 585throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 665switch (message.Response.Status) 670using var document = JsonDocument.Parse(message.Response.ContentStream); 672return Response.FromValue(value, message.Response); 675throw _clientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 727return Response.FromValue(value, message.Response); 730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 761switch (message.Response.Status) 766using var document = JsonDocument.Parse(message.Response.ContentStream); 768return Response.FromValue(value, message.Response); 771throw _clientDiagnostics.CreateRequestFailedException(message.Response); 807switch (message.Response.Status) 812using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 814return Response.FromValue(value, message.Response); 817throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 834switch (message.Response.Status) 839using var document = JsonDocument.Parse(message.Response.ContentStream); 841return Response.FromValue(value, message.Response); 844throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Custom\RestOperations\ProviderRestOperations.cs (24)
49switch (message.Response.Status) 54using var document = JsonDocument.Parse(message.Response.ContentStream); 56return Response.FromValue(value, message.Response); 59throw _clientDiagnostics.CreateRequestFailedException(message.Response); 77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 158switch (message.Response.Status) 163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 165return Response.FromValue(value, message.Response); 168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 185switch (message.Response.Status) 190using var document = JsonDocument.Parse(message.Response.ContentStream); 192return Response.FromValue(value, message.Response); 195throw _clientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 219return Response.FromValue(value, message.Response); 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
Resources\Generated\RestOperations\DataPolicyManifestsRestOperations.cs (26)
69switch (message.Response.Status) 74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 76return Response.FromValue(value, message.Response); 79return Response.FromValue((DataPolicyManifestData)null, message.Response); 81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 98switch (message.Response.Status) 103using var document = JsonDocument.Parse(message.Response.ContentStream); 105return Response.FromValue(value, message.Response); 108return Response.FromValue((DataPolicyManifestData)null, message.Response); 110throw _clientDiagnostics.CreateRequestFailedException(message.Response); 140switch (message.Response.Status) 145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 166using var document = JsonDocument.Parse(message.Response.ContentStream); 168return Response.FromValue(value, message.Response); 171throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231switch (message.Response.Status) 236using var document = JsonDocument.Parse(message.Response.ContentStream); 238return Response.FromValue(value, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\ManagementLocksRestOperations.cs (40)
85switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 129using var document = JsonDocument.Parse(message.Response.ContentStream); 131return Response.FromValue(value, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 173switch (message.Response.Status) 177return message.Response; 179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 201switch (message.Response.Status) 205return message.Response; 207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 247switch (message.Response.Status) 252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 254return Response.FromValue(value, message.Response); 257return Response.FromValue((ManagementLockObjectData)null, message.Response); 259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 281switch (message.Response.Status) 286using var document = JsonDocument.Parse(message.Response.ContentStream); 288return Response.FromValue(value, message.Response); 291return Response.FromValue((ManagementLockObjectData)null, message.Response); 293throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 339return Response.FromValue(value, message.Response); 342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 360switch (message.Response.Status) 365using var document = JsonDocument.Parse(message.Response.ContentStream); 367return Response.FromValue(value, message.Response); 370throw _clientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 440switch (message.Response.Status) 445using var document = JsonDocument.Parse(message.Response.ContentStream); 447return Response.FromValue(value, message.Response); 450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicyAssignmentsRestOperations.cs (92)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86return Response.FromValue((PolicyAssignmentData)null, message.Response); 88throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return Response.FromValue(value, message.Response); 120return Response.FromValue((PolicyAssignmentData)null, message.Response); 122throw _clientDiagnostics.CreateRequestFailedException(message.Response); 171switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 208switch (message.Response.Status) 213using var document = JsonDocument.Parse(message.Response.ContentStream); 215return Response.FromValue(value, message.Response); 218throw _clientDiagnostics.CreateRequestFailedException(message.Response); 258switch (message.Response.Status) 263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 265return Response.FromValue(value, message.Response); 268return Response.FromValue((PolicyAssignmentData)null, message.Response); 270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 292switch (message.Response.Status) 297using var document = JsonDocument.Parse(message.Response.ContentStream); 299return Response.FromValue(value, message.Response); 302return Response.FromValue((PolicyAssignmentData)null, message.Response); 304throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 389switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw _clientDiagnostics.CreateRequestFailedException(message.Response); 478switch (message.Response.Status) 483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 485return Response.FromValue(value, message.Response); 488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 532switch (message.Response.Status) 537using var document = JsonDocument.Parse(message.Response.ContentStream); 539return Response.FromValue(value, message.Response); 542throw _clientDiagnostics.CreateRequestFailedException(message.Response); 586switch (message.Response.Status) 591using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 593return Response.FromValue(value, message.Response); 596throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 615switch (message.Response.Status) 620using var document = JsonDocument.Parse(message.Response.ContentStream); 622return Response.FromValue(value, message.Response); 625throw _clientDiagnostics.CreateRequestFailedException(message.Response); 669switch (message.Response.Status) 674using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 676return Response.FromValue(value, message.Response); 679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 698switch (message.Response.Status) 703using var document = JsonDocument.Parse(message.Response.ContentStream); 705return Response.FromValue(value, message.Response); 708throw _clientDiagnostics.CreateRequestFailedException(message.Response); 751switch (message.Response.Status) 756using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 758return Response.FromValue(value, message.Response); 761throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 790switch (message.Response.Status) 795using var document = JsonDocument.Parse(message.Response.ContentStream); 797return Response.FromValue(value, message.Response); 800throw _clientDiagnostics.CreateRequestFailedException(message.Response); 863switch (message.Response.Status) 868using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 870return Response.FromValue(value, message.Response); 873throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 922switch (message.Response.Status) 927using var document = JsonDocument.Parse(message.Response.ContentStream); 929return Response.FromValue(value, message.Response); 932throw _clientDiagnostics.CreateRequestFailedException(message.Response); 970switch (message.Response.Status) 975using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 977return Response.FromValue(value, message.Response); 980throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1004switch (message.Response.Status) 1009using var document = JsonDocument.Parse(message.Response.ContentStream); 1011return Response.FromValue(value, message.Response); 1014throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1052switch (message.Response.Status) 1057using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1059return Response.FromValue(value, message.Response); 1062throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1086switch (message.Response.Status) 1091using var document = JsonDocument.Parse(message.Response.ContentStream); 1093return Response.FromValue(value, message.Response); 1096throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicyDefinitionsRestOperations.cs (106)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132throw _clientDiagnostics.CreateRequestFailedException(message.Response); 172switch (message.Response.Status) 176return message.Response; 178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 200switch (message.Response.Status) 204return message.Response; 206throw _clientDiagnostics.CreateRequestFailedException(message.Response); 246switch (message.Response.Status) 251using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 253return Response.FromValue(value, message.Response); 256return Response.FromValue((PolicyDefinitionData)null, message.Response); 258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 285using var document = JsonDocument.Parse(message.Response.ContentStream); 287return Response.FromValue(value, message.Response); 290return Response.FromValue((PolicyDefinitionData)null, message.Response); 292throw _clientDiagnostics.CreateRequestFailedException(message.Response); 325switch (message.Response.Status) 330using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 332return Response.FromValue(value, message.Response); 335return Response.FromValue((PolicyDefinitionData)null, message.Response); 337throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354switch (message.Response.Status) 359using var document = JsonDocument.Parse(message.Response.ContentStream); 361return Response.FromValue(value, message.Response); 364return Response.FromValue((PolicyDefinitionData)null, message.Response); 366throw _clientDiagnostics.CreateRequestFailedException(message.Response); 415switch (message.Response.Status) 420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 422return Response.FromValue(value, message.Response); 425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 452switch (message.Response.Status) 457using var document = JsonDocument.Parse(message.Response.ContentStream); 459return Response.FromValue(value, message.Response); 462throw _clientDiagnostics.CreateRequestFailedException(message.Response); 502switch (message.Response.Status) 506return message.Response; 508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 530switch (message.Response.Status) 534return message.Response; 536throw _clientDiagnostics.CreateRequestFailedException(message.Response); 576switch (message.Response.Status) 581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 583return Response.FromValue(value, message.Response); 586return Response.FromValue((PolicyDefinitionData)null, message.Response); 588throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 610switch (message.Response.Status) 615using var document = JsonDocument.Parse(message.Response.ContentStream); 617return Response.FromValue(value, message.Response); 620return Response.FromValue((PolicyDefinitionData)null, message.Response); 622throw _clientDiagnostics.CreateRequestFailedException(message.Response); 666switch (message.Response.Status) 671using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 673return Response.FromValue(value, message.Response); 676throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 695switch (message.Response.Status) 700using var document = JsonDocument.Parse(message.Response.ContentStream); 702return Response.FromValue(value, message.Response); 705throw _clientDiagnostics.CreateRequestFailedException(message.Response); 740switch (message.Response.Status) 745using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 747return Response.FromValue(value, message.Response); 750throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 767using var document = JsonDocument.Parse(message.Response.ContentStream); 769return Response.FromValue(value, message.Response); 772throw _clientDiagnostics.CreateRequestFailedException(message.Response); 816switch (message.Response.Status) 821using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 823return Response.FromValue(value, message.Response); 826throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 845switch (message.Response.Status) 850using var document = JsonDocument.Parse(message.Response.ContentStream); 852return Response.FromValue(value, message.Response); 855throw _clientDiagnostics.CreateRequestFailedException(message.Response); 893switch (message.Response.Status) 898using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 900return Response.FromValue(value, message.Response); 903throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 927switch (message.Response.Status) 932using var document = JsonDocument.Parse(message.Response.ContentStream); 934return Response.FromValue(value, message.Response); 937throw _clientDiagnostics.CreateRequestFailedException(message.Response); 970switch (message.Response.Status) 975using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 977return Response.FromValue(value, message.Response); 980throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 999switch (message.Response.Status) 1004using var document = JsonDocument.Parse(message.Response.ContentStream); 1006return Response.FromValue(value, message.Response); 1009throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1047switch (message.Response.Status) 1052using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1054return Response.FromValue(value, message.Response); 1057throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1081switch (message.Response.Status) 1086using var document = JsonDocument.Parse(message.Response.ContentStream); 1088return Response.FromValue(value, message.Response); 1091throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicyExemptionsRestOperations.cs (88)
76switch (message.Response.Status) 80return message.Response; 82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104switch (message.Response.Status) 108return message.Response; 110throw _clientDiagnostics.CreateRequestFailedException(message.Response); 159switch (message.Response.Status) 165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 167return Response.FromValue(value, message.Response); 170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 203using var document = JsonDocument.Parse(message.Response.ContentStream); 205return Response.FromValue(value, message.Response); 208throw _clientDiagnostics.CreateRequestFailedException(message.Response); 248switch (message.Response.Status) 253using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 255return Response.FromValue(value, message.Response); 258return Response.FromValue((PolicyExemptionData)null, message.Response); 260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((PolicyExemptionData)null, message.Response); 294throw _clientDiagnostics.CreateRequestFailedException(message.Response); 333switch (message.Response.Status) 338using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 340return Response.FromValue(value, message.Response); 343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 361switch (message.Response.Status) 366using var document = JsonDocument.Parse(message.Response.ContentStream); 368return Response.FromValue(value, message.Response); 371throw _clientDiagnostics.CreateRequestFailedException(message.Response); 417switch (message.Response.Status) 422using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 424return Response.FromValue(value, message.Response); 427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw _clientDiagnostics.CreateRequestFailedException(message.Response); 534switch (message.Response.Status) 539using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 541return Response.FromValue(value, message.Response); 544throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 587switch (message.Response.Status) 592using var document = JsonDocument.Parse(message.Response.ContentStream); 594return Response.FromValue(value, message.Response); 597throw _clientDiagnostics.CreateRequestFailedException(message.Response); 636switch (message.Response.Status) 641using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 643return Response.FromValue(value, message.Response); 646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw _clientDiagnostics.CreateRequestFailedException(message.Response); 711switch (message.Response.Status) 716using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 718return Response.FromValue(value, message.Response); 721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response); 796switch (message.Response.Status) 801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 803return Response.FromValue(value, message.Response); 806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 834switch (message.Response.Status) 839using var document = JsonDocument.Parse(message.Response.ContentStream); 841return Response.FromValue(value, message.Response); 844throw _clientDiagnostics.CreateRequestFailedException(message.Response); 906switch (message.Response.Status) 911using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 913return Response.FromValue(value, message.Response); 916throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 964switch (message.Response.Status) 969using var document = JsonDocument.Parse(message.Response.ContentStream); 971return Response.FromValue(value, message.Response); 974throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1011switch (message.Response.Status) 1016using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1018return Response.FromValue(value, message.Response); 1021throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1044switch (message.Response.Status) 1049using var document = JsonDocument.Parse(message.Response.ContentStream); 1051return Response.FromValue(value, message.Response); 1054throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicySetDefinitionsRestOperations.cs (106)
85switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 129using var document = JsonDocument.Parse(message.Response.ContentStream); 131return Response.FromValue(value, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 174switch (message.Response.Status) 178return message.Response; 180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 202switch (message.Response.Status) 206return message.Response; 208throw _clientDiagnostics.CreateRequestFailedException(message.Response); 248switch (message.Response.Status) 253using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 255return Response.FromValue(value, message.Response); 258return Response.FromValue((PolicySetDefinitionData)null, message.Response); 260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((PolicySetDefinitionData)null, message.Response); 294throw _clientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 332using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 334return Response.FromValue(value, message.Response); 337return Response.FromValue((PolicySetDefinitionData)null, message.Response); 339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 361using var document = JsonDocument.Parse(message.Response.ContentStream); 363return Response.FromValue(value, message.Response); 366return Response.FromValue((PolicySetDefinitionData)null, message.Response); 368throw _clientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 441switch (message.Response.Status) 446using var document = JsonDocument.Parse(message.Response.ContentStream); 448return Response.FromValue(value, message.Response); 451throw _clientDiagnostics.CreateRequestFailedException(message.Response); 486switch (message.Response.Status) 491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 493return Response.FromValue(value, message.Response); 496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 513using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518throw _clientDiagnostics.CreateRequestFailedException(message.Response); 567switch (message.Response.Status) 573using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 575return Response.FromValue(value, message.Response); 578throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 605switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 660return message.Response; 662throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 684switch (message.Response.Status) 688return message.Response; 690throw _clientDiagnostics.CreateRequestFailedException(message.Response); 730switch (message.Response.Status) 735using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 737return Response.FromValue(value, message.Response); 740return Response.FromValue((PolicySetDefinitionData)null, message.Response); 742throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 769using var document = JsonDocument.Parse(message.Response.ContentStream); 771return Response.FromValue(value, message.Response); 774return Response.FromValue((PolicySetDefinitionData)null, message.Response); 776throw _clientDiagnostics.CreateRequestFailedException(message.Response); 820switch (message.Response.Status) 825using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 827return Response.FromValue(value, message.Response); 830throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 849switch (message.Response.Status) 854using var document = JsonDocument.Parse(message.Response.ContentStream); 856return Response.FromValue(value, message.Response); 859throw _clientDiagnostics.CreateRequestFailedException(message.Response); 897switch (message.Response.Status) 902using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 904return Response.FromValue(value, message.Response); 907throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 931switch (message.Response.Status) 936using var document = JsonDocument.Parse(message.Response.ContentStream); 938return Response.FromValue(value, message.Response); 941throw _clientDiagnostics.CreateRequestFailedException(message.Response); 974switch (message.Response.Status) 979using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 981return Response.FromValue(value, message.Response); 984throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1003switch (message.Response.Status) 1008using var document = JsonDocument.Parse(message.Response.ContentStream); 1010return Response.FromValue(value, message.Response); 1013throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1051switch (message.Response.Status) 1056using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1058return Response.FromValue(value, message.Response); 1061throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1085switch (message.Response.Status) 1090using var document = JsonDocument.Parse(message.Response.ContentStream); 1092return Response.FromValue(value, message.Response); 1095throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\ResourceLinksRestOperations.cs (56)
68switch (message.Response.Status) 72return message.Response; 74throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 91switch (message.Response.Status) 95return message.Response; 97throw _clientDiagnostics.CreateRequestFailedException(message.Response); 139switch (message.Response.Status) 145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 168switch (message.Response.Status) 174using var document = JsonDocument.Parse(message.Response.ContentStream); 176return Response.FromValue(value, message.Response); 179throw _clientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 219return Response.FromValue(value, message.Response); 222return Response.FromValue((ResourceLinkData)null, message.Response); 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((ResourceLinkData)null, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 292switch (message.Response.Status) 297using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 299return Response.FromValue(value, message.Response); 302throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 325using var document = JsonDocument.Parse(message.Response.ContentStream); 327return Response.FromValue(value, message.Response); 330throw _clientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 370using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 372return Response.FromValue(value, message.Response); 375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 392switch (message.Response.Status) 397using var document = JsonDocument.Parse(message.Response.ContentStream); 399return Response.FromValue(value, message.Response); 402throw _clientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 446return Response.FromValue(value, message.Response); 449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 472switch (message.Response.Status) 477using var document = JsonDocument.Parse(message.Response.ContentStream); 479return Response.FromValue(value, message.Response); 482throw _clientDiagnostics.CreateRequestFailedException(message.Response); 518switch (message.Response.Status) 523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 525return Response.FromValue(value, message.Response); 528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 550switch (message.Response.Status) 555using var document = JsonDocument.Parse(message.Response.ContentStream); 557return Response.FromValue(value, message.Response); 560throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\FeaturesRestOperations.cs (58)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 141switch (message.Response.Status) 146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 148return Response.FromValue(value, message.Response); 151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 168switch (message.Response.Status) 173using var document = JsonDocument.Parse(message.Response.ContentStream); 175return Response.FromValue(value, message.Response); 178throw _clientDiagnostics.CreateRequestFailedException(message.Response); 220switch (message.Response.Status) 225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 227return Response.FromValue(value, message.Response); 231return Response.FromValue<FeatureData>(null, message.Response); 234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 261using var document = JsonDocument.Parse(message.Response.ContentStream); 263return Response.FromValue(value, message.Response); 267return Response.FromValue<FeatureData>(null, message.Response); 270throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 320return Response.FromValue(value, message.Response); 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 345switch (message.Response.Status) 350using var document = JsonDocument.Parse(message.Response.ContentStream); 352return Response.FromValue(value, message.Response); 355throw _clientDiagnostics.CreateRequestFailedException(message.Response); 398switch (message.Response.Status) 403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 405return Response.FromValue(value, message.Response); 408throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 471switch (message.Response.Status) 476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 478return Response.FromValue(value, message.Response); 481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 498switch (message.Response.Status) 503using var document = JsonDocument.Parse(message.Response.ContentStream); 505return Response.FromValue(value, message.Response); 508throw _clientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 576switch (message.Response.Status) 581using var document = JsonDocument.Parse(message.Response.ContentStream); 583return Response.FromValue(value, message.Response); 586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\ProviderRestOperations.cs (42)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 117using var document = JsonDocument.Parse(message.Response.ContentStream); 119return Response.FromValue(value, message.Response); 122throw _clientDiagnostics.CreateRequestFailedException(message.Response); 158switch (message.Response.Status) 163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 165return Response.FromValue(value, message.Response); 168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 185switch (message.Response.Status) 190using var document = JsonDocument.Parse(message.Response.ContentStream); 192return Response.FromValue(value, message.Response); 195throw _clientDiagnostics.CreateRequestFailedException(message.Response); 232switch (message.Response.Status) 237using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 239return Response.FromValue(value, message.Response); 242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 254switch (message.Response.Status) 259using var document = JsonDocument.Parse(message.Response.ContentStream); 261return Response.FromValue(value, message.Response); 264throw _clientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 309using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 311return Response.FromValue(value, message.Response); 315return Response.FromValue<ProviderData>(null, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 347return Response.FromValue<ProviderData>(null, message.Response); 350throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 412switch (message.Response.Status) 417using var document = JsonDocument.Parse(message.Response.ContentStream); 419return Response.FromValue(value, message.Response); 422throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\ResourceGroupsRestOperations.cs (62)
83switch (message.Response.Status) 88return Response.FromValue(value, message.Response); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118return Response.FromValue(value, message.Response); 123return Response.FromValue(value, message.Response); 126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 170switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 209using var document = JsonDocument.Parse(message.Response.ContentStream); 211return Response.FromValue(value, message.Response); 214throw _clientDiagnostics.CreateRequestFailedException(message.Response); 249switch (message.Response.Status) 253return message.Response; 255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 272switch (message.Response.Status) 276return message.Response; 278throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 320return Response.FromValue(value, message.Response); 324return Response.FromValue<ResourceGroupData>(null, message.Response); 327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 349using var document = JsonDocument.Parse(message.Response.ContentStream); 351return Response.FromValue(value, message.Response); 355return Response.FromValue<ResourceGroupData>(null, message.Response); 358throw _clientDiagnostics.CreateRequestFailedException(message.Response); 402switch (message.Response.Status) 408using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 410return Response.FromValue(value, message.Response); 413throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435switch (message.Response.Status) 440using var document = JsonDocument.Parse(message.Response.ContentStream); 442return Response.FromValue(value, message.Response); 445throw _clientDiagnostics.CreateRequestFailedException(message.Response); 490switch (message.Response.Status) 494return message.Response; 496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 518switch (message.Response.Status) 522return message.Response; 524throw _clientDiagnostics.CreateRequestFailedException(message.Response); 561switch (message.Response.Status) 566using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 568return Response.FromValue(value, message.Response); 571throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 583switch (message.Response.Status) 588using var document = JsonDocument.Parse(message.Response.ContentStream); 590return Response.FromValue(value, message.Response); 593throw _clientDiagnostics.CreateRequestFailedException(message.Response); 626switch (message.Response.Status) 631using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 633return Response.FromValue(value, message.Response); 636throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 655switch (message.Response.Status) 660using var document = JsonDocument.Parse(message.Response.ContentStream); 662return Response.FromValue(value, message.Response); 665throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\ResourcesRestOperations.cs (114)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 134using var document = JsonDocument.Parse(message.Response.ContentStream); 136return Response.FromValue(value, message.Response); 139throw _clientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 188return message.Response; 190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 212switch (message.Response.Status) 216return message.Response; 218throw _clientDiagnostics.CreateRequestFailedException(message.Response); 263switch (message.Response.Status) 267return message.Response; 269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 291switch (message.Response.Status) 295return message.Response; 297throw _clientDiagnostics.CreateRequestFailedException(message.Response); 339switch (message.Response.Status) 344using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 346return Response.FromValue(value, message.Response); 349throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 362switch (message.Response.Status) 367using var document = JsonDocument.Parse(message.Response.ContentStream); 369return Response.FromValue(value, message.Response); 372throw _clientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445return Response.FromValue(value, message.Response); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500return Response.FromValue(value, message.Response); 505return Response.FromValue(value, message.Response); 508throw _clientDiagnostics.CreateRequestFailedException(message.Response); 576switch (message.Response.Status) 581return message.Response; 583throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 625switch (message.Response.Status) 630return message.Response; 632throw _clientDiagnostics.CreateRequestFailedException(message.Response); 709switch (message.Response.Status) 714return message.Response; 716throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 763switch (message.Response.Status) 768return message.Response; 770throw _clientDiagnostics.CreateRequestFailedException(message.Response); 847switch (message.Response.Status) 851return message.Response; 853throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 900switch (message.Response.Status) 904return message.Response; 906throw _clientDiagnostics.CreateRequestFailedException(message.Response); 974switch (message.Response.Status) 979using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 981return Response.FromValue(value, message.Response); 984throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1026switch (message.Response.Status) 1031using var document = JsonDocument.Parse(message.Response.ContentStream); 1033return Response.FromValue(value, message.Response); 1036throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1074switch (message.Response.Status) 1079return Response.FromValue(value, message.Response); 1084return Response.FromValue(value, message.Response); 1087throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1109switch (message.Response.Status) 1114return Response.FromValue(value, message.Response); 1119return Response.FromValue(value, message.Response); 1122throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1160switch (message.Response.Status) 1165return message.Response; 1167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1189switch (message.Response.Status) 1194return message.Response; 1196throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1243switch (message.Response.Status) 1248return message.Response; 1250throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1277switch (message.Response.Status) 1282return message.Response; 1284throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1331switch (message.Response.Status) 1335return message.Response; 1337throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1364switch (message.Response.Status) 1368return message.Response; 1370throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1408switch (message.Response.Status) 1413using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1415return Response.FromValue(value, message.Response); 1419return Response.FromValue<GenericResourceData>(null, message.Response); 1422throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1444switch (message.Response.Status) 1449using var document = JsonDocument.Parse(message.Response.ContentStream); 1451return Response.FromValue(value, message.Response); 1455return Response.FromValue<GenericResourceData>(null, message.Response); 1458throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1497switch (message.Response.Status) 1502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1504return Response.FromValue(value, message.Response); 1507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1532switch (message.Response.Status) 1537using var document = JsonDocument.Parse(message.Response.ContentStream); 1539return Response.FromValue(value, message.Response); 1542throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1576switch (message.Response.Status) 1581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1583return Response.FromValue(value, message.Response); 1586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1606switch (message.Response.Status) 1611using var document = JsonDocument.Parse(message.Response.ContentStream); 1613return Response.FromValue(value, message.Response); 1616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\RestOperations.cs (8)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\SubscriptionsRestOperations.cs (34)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 140switch (message.Response.Status) 145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 151return Response.FromValue<SubscriptionData>(null, message.Response); 154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 182return Response.FromValue<SubscriptionData>(null, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 235using var document = JsonDocument.Parse(message.Response.ContentStream); 237return Response.FromValue(value, message.Response); 240throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return Response.FromValue(value, message.Response); 281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\TagRestOperations.cs (74)
86switch (message.Response.Status) 90return message.Response; 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 114switch (message.Response.Status) 118return message.Response; 120throw _clientDiagnostics.CreateRequestFailedException(message.Response); 162switch (message.Response.Status) 168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 170return Response.FromValue(value, message.Response); 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 195switch (message.Response.Status) 201using var document = JsonDocument.Parse(message.Response.ContentStream); 203return Response.FromValue(value, message.Response); 206throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 249return Response.FromValue(value, message.Response); 252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 269switch (message.Response.Status) 275using var document = JsonDocument.Parse(message.Response.ContentStream); 277return Response.FromValue(value, message.Response); 280throw _clientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 342return message.Response; 344throw _clientDiagnostics.CreateRequestFailedException(message.Response); 371switch (message.Response.Status) 376using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 378return Response.FromValue(value, message.Response); 381throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 391switch (message.Response.Status) 396using var document = JsonDocument.Parse(message.Response.ContentStream); 398return Response.FromValue(value, message.Response); 401throw _clientDiagnostics.CreateRequestFailedException(message.Response); 432switch (message.Response.Status) 437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 439return Response.FromValue(value, message.Response); 442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 464using var document = JsonDocument.Parse(message.Response.ContentStream); 466return Response.FromValue(value, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 512switch (message.Response.Status) 517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 519return Response.FromValue(value, message.Response); 522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 544switch (message.Response.Status) 549using var document = JsonDocument.Parse(message.Response.ContentStream); 551return Response.FromValue(value, message.Response); 554throw _clientDiagnostics.CreateRequestFailedException(message.Response); 597switch (message.Response.Status) 602using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 604return Response.FromValue(value, message.Response); 607throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 629switch (message.Response.Status) 634using var document = JsonDocument.Parse(message.Response.ContentStream); 636return Response.FromValue(value, message.Response); 639throw _clientDiagnostics.CreateRequestFailedException(message.Response); 673switch (message.Response.Status) 678using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 680return Response.FromValue(value, message.Response); 683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 700switch (message.Response.Status) 705using var document = JsonDocument.Parse(message.Response.ContentStream); 707return Response.FromValue(value, message.Response); 710throw _clientDiagnostics.CreateRequestFailedException(message.Response); 744switch (message.Response.Status) 747return message.Response; 749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 766switch (message.Response.Status) 769return message.Response; 771throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\PseudoGenerated\RestOperations\TenantsRestOperations.cs (16)
65switch (message.Response.Status) 70using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 72return Response.FromValue(value, message.Response); 75throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 85switch (message.Response.Status) 90using var document = JsonDocument.Parse(message.Response.ContentStream); 92return Response.FromValue(value, message.Response); 95throw _clientDiagnostics.CreateRequestFailedException(message.Response); 126switch (message.Response.Status) 131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 133return Response.FromValue(value, message.Response); 136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 158using var document = JsonDocument.Parse(message.Response.ContentStream); 160return Response.FromValue(value, message.Response); 163throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.AppConfiguration (161)
Generated\RestOperations\ConfigurationStoresRestOperations.cs (92)
79switch (message.Response.Status) 84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 86return Response.FromValue(value, message.Response); 89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107switch (message.Response.Status) 112using var document = JsonDocument.Parse(message.Response.ContentStream); 114return Response.FromValue(value, message.Response); 117throw _clientDiagnostics.CreateRequestFailedException(message.Response); 163switch (message.Response.Status) 168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 170return Response.FromValue(value, message.Response); 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 196switch (message.Response.Status) 201using var document = JsonDocument.Parse(message.Response.ContentStream); 203return Response.FromValue(value, message.Response); 206throw _clientDiagnostics.CreateRequestFailedException(message.Response); 253switch (message.Response.Status) 258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 260return Response.FromValue(value, message.Response); 263return Response.FromValue((ConfigurationStoreData)null, message.Response); 265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 292switch (message.Response.Status) 297using var document = JsonDocument.Parse(message.Response.ContentStream); 299return Response.FromValue(value, message.Response); 302return Response.FromValue((ConfigurationStoreData)null, message.Response); 304throw _clientDiagnostics.CreateRequestFailedException(message.Response); 360switch (message.Response.Status) 364return message.Response; 366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 398switch (message.Response.Status) 402return message.Response; 404throw _clientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456return message.Response; 458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 485switch (message.Response.Status) 490return message.Response; 492throw _clientDiagnostics.CreateRequestFailedException(message.Response); 548switch (message.Response.Status) 552return message.Response; 554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 590return message.Response; 592throw _clientDiagnostics.CreateRequestFailedException(message.Response); 645switch (message.Response.Status) 650using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 652return Response.FromValue(value, message.Response); 655throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 683switch (message.Response.Status) 688using var document = JsonDocument.Parse(message.Response.ContentStream); 690return Response.FromValue(value, message.Response); 693throw _clientDiagnostics.CreateRequestFailedException(message.Response); 750switch (message.Response.Status) 755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 757return Response.FromValue(value, message.Response); 760throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 792switch (message.Response.Status) 797using var document = JsonDocument.Parse(message.Response.ContentStream); 799return Response.FromValue(value, message.Response); 802throw _clientDiagnostics.CreateRequestFailedException(message.Response); 859switch (message.Response.Status) 864using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 866return Response.FromValue(value, message.Response); 869throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 901switch (message.Response.Status) 906using var document = JsonDocument.Parse(message.Response.ContentStream); 908return Response.FromValue(value, message.Response); 911throw _clientDiagnostics.CreateRequestFailedException(message.Response); 948switch (message.Response.Status) 953using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 955return Response.FromValue(value, message.Response); 958throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 981switch (message.Response.Status) 986using var document = JsonDocument.Parse(message.Response.ContentStream); 988return Response.FromValue(value, message.Response); 991throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1033switch (message.Response.Status) 1038using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1040return Response.FromValue(value, message.Response); 1043throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1071switch (message.Response.Status) 1076using var document = JsonDocument.Parse(message.Response.ContentStream); 1078return Response.FromValue(value, message.Response); 1081throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1128switch (message.Response.Status) 1133using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1135return Response.FromValue(value, message.Response); 1138throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1171switch (message.Response.Status) 1176using var document = JsonDocument.Parse(message.Response.ContentStream); 1178return Response.FromValue(value, message.Response); 1181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (38)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 416return message.Response; 418throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455return message.Response; 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((PrivateLinkResourceData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((PrivateLinkResourceData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Communication (99)
Generated\RestOperations\CommunicationServiceRestOperations.cs (94)
82switch (message.Response.Status) 87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 89return Response.FromValue(value, message.Response); 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return Response.FromValue(value, message.Response); 120throw _clientDiagnostics.CreateRequestFailedException(message.Response); 176switch (message.Response.Status) 181using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 183return Response.FromValue(value, message.Response); 186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 258switch (message.Response.Status) 263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 265return Response.FromValue(value, message.Response); 268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 285switch (message.Response.Status) 290using var document = JsonDocument.Parse(message.Response.ContentStream); 292return Response.FromValue(value, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 336switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return Response.FromValue(value, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 368switch (message.Response.Status) 373using var document = JsonDocument.Parse(message.Response.ContentStream); 375return Response.FromValue(value, message.Response); 378throw _clientDiagnostics.CreateRequestFailedException(message.Response); 433switch (message.Response.Status) 438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 440return Response.FromValue(value, message.Response); 443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471switch (message.Response.Status) 476using var document = JsonDocument.Parse(message.Response.ContentStream); 478return Response.FromValue(value, message.Response); 481throw _clientDiagnostics.CreateRequestFailedException(message.Response); 528switch (message.Response.Status) 533using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 535return Response.FromValue(value, message.Response); 538return Response.FromValue((CommunicationServiceData)null, message.Response); 540throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 572using var document = JsonDocument.Parse(message.Response.ContentStream); 574return Response.FromValue(value, message.Response); 577return Response.FromValue((CommunicationServiceData)null, message.Response); 579throw _clientDiagnostics.CreateRequestFailedException(message.Response); 634switch (message.Response.Status) 638return message.Response; 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 672return message.Response; 674throw _clientDiagnostics.CreateRequestFailedException(message.Response); 721switch (message.Response.Status) 726return message.Response; 728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755switch (message.Response.Status) 760return message.Response; 762throw _clientDiagnostics.CreateRequestFailedException(message.Response); 810switch (message.Response.Status) 815using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 817return Response.FromValue(value, message.Response); 820throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 847switch (message.Response.Status) 852using var document = JsonDocument.Parse(message.Response.ContentStream); 854return Response.FromValue(value, message.Response); 857throw _clientDiagnostics.CreateRequestFailedException(message.Response); 914switch (message.Response.Status) 919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 921return Response.FromValue(value, message.Response); 924throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 956switch (message.Response.Status) 961using var document = JsonDocument.Parse(message.Response.ContentStream); 963return Response.FromValue(value, message.Response); 966throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1002switch (message.Response.Status) 1007using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1009return Response.FromValue(value, message.Response); 1012throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1034switch (message.Response.Status) 1039using var document = JsonDocument.Parse(message.Response.ContentStream); 1041return Response.FromValue(value, message.Response); 1044throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1085switch (message.Response.Status) 1090using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1092return Response.FromValue(value, message.Response); 1095throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1122switch (message.Response.Status) 1127using var document = JsonDocument.Parse(message.Response.ContentStream); 1129return Response.FromValue(value, message.Response); 1132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Compute (2335)
Generated\RestOperations\AvailabilitySetsRestOperations.cs (72)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144throw _clientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 247using var document = JsonDocument.Parse(message.Response.ContentStream); 249return Response.FromValue(value, message.Response); 252throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394return Response.FromValue((AvailabilitySetData)null, message.Response); 396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 423switch (message.Response.Status) 428using var document = JsonDocument.Parse(message.Response.ContentStream); 430return Response.FromValue(value, message.Response); 433return Response.FromValue((AvailabilitySetData)null, message.Response); 435throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw _clientDiagnostics.CreateRequestFailedException(message.Response); 643switch (message.Response.Status) 648using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 650return Response.FromValue(value, message.Response); 653throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 680switch (message.Response.Status) 685using var document = JsonDocument.Parse(message.Response.ContentStream); 687return Response.FromValue(value, message.Response); 690throw _clientDiagnostics.CreateRequestFailedException(message.Response); 727switch (message.Response.Status) 732using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 734return Response.FromValue(value, message.Response); 737throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw _clientDiagnostics.CreateRequestFailedException(message.Response); 811switch (message.Response.Status) 816using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 818return Response.FromValue(value, message.Response); 821throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 848switch (message.Response.Status) 853using var document = JsonDocument.Parse(message.Response.ContentStream); 855return Response.FromValue(value, message.Response); 858throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceOperatingSystemsRestOperations.cs (52)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93return Response.FromValue((OSVersionData)null, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132return Response.FromValue((OSVersionData)null, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 207switch (message.Response.Status) 212using var document = JsonDocument.Parse(message.Response.ContentStream); 214return Response.FromValue(value, message.Response); 217throw _clientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 271return Response.FromValue(value, message.Response); 274return Response.FromValue((OSFamilyData)null, message.Response); 276throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308using var document = JsonDocument.Parse(message.Response.ContentStream); 310return Response.FromValue(value, message.Response); 313return Response.FromValue((OSFamilyData)null, message.Response); 315throw _clientDiagnostics.CreateRequestFailedException(message.Response); 356switch (message.Response.Status) 361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 363return Response.FromValue(value, message.Response); 366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 393using var document = JsonDocument.Parse(message.Response.ContentStream); 395return Response.FromValue(value, message.Response); 398throw _clientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 446return Response.FromValue(value, message.Response); 449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 481using var document = JsonDocument.Parse(message.Response.ContentStream); 483return Response.FromValue(value, message.Response); 486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceRoleInstancesRestOperations.cs (64)
91switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 135return message.Response; 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((RoleInstanceData)null, message.Response); 208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((RoleInstanceData)null, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355using var document = JsonDocument.Parse(message.Response.ContentStream); 357return Response.FromValue(value, message.Response); 360throw _clientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 456using var document = JsonDocument.Parse(message.Response.ContentStream); 458return Response.FromValue(value, message.Response); 461throw _clientDiagnostics.CreateRequestFailedException(message.Response); 516switch (message.Response.Status) 520return message.Response; 522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 554switch (message.Response.Status) 558return message.Response; 560throw _clientDiagnostics.CreateRequestFailedException(message.Response); 615switch (message.Response.Status) 619return message.Response; 621throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 653switch (message.Response.Status) 657return message.Response; 659throw _clientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 718return message.Response; 720throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 756return message.Response; 758throw _clientDiagnostics.CreateRequestFailedException(message.Response); 813switch (message.Response.Status) 818return Response.FromValue(value, message.Response); 821throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 853switch (message.Response.Status) 858return Response.FromValue(value, message.Response); 861throw _clientDiagnostics.CreateRequestFailedException(message.Response); 908switch (message.Response.Status) 913using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 915return Response.FromValue(value, message.Response); 918throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 951switch (message.Response.Status) 956using var document = JsonDocument.Parse(message.Response.ContentStream); 958return Response.FromValue(value, message.Response); 961throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceRolesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((CloudServiceRoleData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((CloudServiceRoleData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231switch (message.Response.Status) 236using var document = JsonDocument.Parse(message.Response.ContentStream); 238return Response.FromValue(value, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 294return Response.FromValue(value, message.Response); 297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 336return Response.FromValue(value, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServicesRestOperations.cs (104)
91switch (message.Response.Status) 95return message.Response; 97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 129return message.Response; 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 186switch (message.Response.Status) 189return message.Response; 191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 222return message.Response; 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276return message.Response; 278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310return message.Response; 312throw _clientDiagnostics.CreateRequestFailedException(message.Response); 359switch (message.Response.Status) 364using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 366return Response.FromValue(value, message.Response); 369return Response.FromValue((CloudServiceData)null, message.Response); 371throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 398switch (message.Response.Status) 403using var document = JsonDocument.Parse(message.Response.ContentStream); 405return Response.FromValue(value, message.Response); 408return Response.FromValue((CloudServiceData)null, message.Response); 410throw _clientDiagnostics.CreateRequestFailedException(message.Response); 458switch (message.Response.Status) 463using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 465return Response.FromValue(value, message.Response); 468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 546return Response.FromValue(value, message.Response); 549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw _clientDiagnostics.CreateRequestFailedException(message.Response); 617switch (message.Response.Status) 622using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 624return Response.FromValue(value, message.Response); 627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 649switch (message.Response.Status) 654using var document = JsonDocument.Parse(message.Response.ContentStream); 656return Response.FromValue(value, message.Response); 659throw _clientDiagnostics.CreateRequestFailedException(message.Response); 707switch (message.Response.Status) 711return message.Response; 713throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 740switch (message.Response.Status) 744return message.Response; 746throw _clientDiagnostics.CreateRequestFailedException(message.Response); 794switch (message.Response.Status) 798return message.Response; 800throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 827switch (message.Response.Status) 831return message.Response; 833throw _clientDiagnostics.CreateRequestFailedException(message.Response); 889switch (message.Response.Status) 893return message.Response; 895throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 923switch (message.Response.Status) 927return message.Response; 929throw _clientDiagnostics.CreateRequestFailedException(message.Response); 985switch (message.Response.Status) 989return message.Response; 991throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1019switch (message.Response.Status) 1023return message.Response; 1025throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1081switch (message.Response.Status) 1085return message.Response; 1087throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1115switch (message.Response.Status) 1119return message.Response; 1121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1177switch (message.Response.Status) 1181return message.Response; 1183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1211switch (message.Response.Status) 1215return message.Response; 1217throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1253switch (message.Response.Status) 1258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1260return Response.FromValue(value, message.Response); 1263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1285switch (message.Response.Status) 1290using var document = JsonDocument.Parse(message.Response.ContentStream); 1292return Response.FromValue(value, message.Response); 1295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1336switch (message.Response.Status) 1341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1343return Response.FromValue(value, message.Response); 1346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1373switch (message.Response.Status) 1378using var document = JsonDocument.Parse(message.Response.ContentStream); 1380return Response.FromValue(value, message.Response); 1383throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServicesUpdateDomainRestOperations.cs (30)
94switch (message.Response.Status) 98return message.Response; 100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 133return message.Response; 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 286using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 288return Response.FromValue(value, message.Response); 291throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 318switch (message.Response.Status) 323using var document = JsonDocument.Parse(message.Response.ContentStream); 325return Response.FromValue(value, message.Response); 328throw _clientDiagnostics.CreateRequestFailedException(message.Response); 374switch (message.Response.Status) 379using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 381return Response.FromValue(value, message.Response); 384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 416switch (message.Response.Status) 421using var document = JsonDocument.Parse(message.Response.ContentStream); 423return Response.FromValue(value, message.Response); 426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DedicatedHostGroupsRestOperations.cs (64)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 304return message.Response; 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 337return message.Response; 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 391switch (message.Response.Status) 396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 398return Response.FromValue(value, message.Response); 401return Response.FromValue((DedicatedHostGroupData)null, message.Response); 403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 436using var document = JsonDocument.Parse(message.Response.ContentStream); 438return Response.FromValue(value, message.Response); 441return Response.FromValue((DedicatedHostGroupData)null, message.Response); 443throw _clientDiagnostics.CreateRequestFailedException(message.Response); 484switch (message.Response.Status) 489using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 491return Response.FromValue(value, message.Response); 494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 516switch (message.Response.Status) 521using var document = JsonDocument.Parse(message.Response.ContentStream); 523return Response.FromValue(value, message.Response); 526throw _clientDiagnostics.CreateRequestFailedException(message.Response); 560switch (message.Response.Status) 565using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 567return Response.FromValue(value, message.Response); 570throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 587switch (message.Response.Status) 592using var document = JsonDocument.Parse(message.Response.ContentStream); 594return Response.FromValue(value, message.Response); 597throw _clientDiagnostics.CreateRequestFailedException(message.Response); 638switch (message.Response.Status) 643using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 645return Response.FromValue(value, message.Response); 648throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 675switch (message.Response.Status) 680using var document = JsonDocument.Parse(message.Response.ContentStream); 682return Response.FromValue(value, message.Response); 685throw _clientDiagnostics.CreateRequestFailedException(message.Response); 721switch (message.Response.Status) 726using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 728return Response.FromValue(value, message.Response); 731throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 753switch (message.Response.Status) 758using var document = JsonDocument.Parse(message.Response.ContentStream); 760return Response.FromValue(value, message.Response); 763throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DedicatedHostsRestOperations.cs (44)
99switch (message.Response.Status) 103return message.Response; 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142switch (message.Response.Status) 146return message.Response; 148throw _clientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 256return message.Response; 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316return message.Response; 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426return Response.FromValue((DedicatedHostData)null, message.Response); 428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 461switch (message.Response.Status) 466using var document = JsonDocument.Parse(message.Response.ContentStream); 468return Response.FromValue(value, message.Response); 471return Response.FromValue((DedicatedHostData)null, message.Response); 473throw _clientDiagnostics.CreateRequestFailedException(message.Response); 521switch (message.Response.Status) 526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 528return Response.FromValue(value, message.Response); 531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 558switch (message.Response.Status) 563using var document = JsonDocument.Parse(message.Response.ContentStream); 565return Response.FromValue(value, message.Response); 568throw _clientDiagnostics.CreateRequestFailedException(message.Response); 614switch (message.Response.Status) 619using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 621return Response.FromValue(value, message.Response); 624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 656switch (message.Response.Status) 661using var document = JsonDocument.Parse(message.Response.ContentStream); 663return Response.FromValue(value, message.Response); 666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskAccessesRestOperations.cs (106)
92switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 192switch (message.Response.Status) 196return message.Response; 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 283switch (message.Response.Status) 288using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 290return Response.FromValue(value, message.Response); 293return Response.FromValue((DiskAccessData)null, message.Response); 295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 327using var document = JsonDocument.Parse(message.Response.ContentStream); 329return Response.FromValue(value, message.Response); 332return Response.FromValue((DiskAccessData)null, message.Response); 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386return message.Response; 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 415switch (message.Response.Status) 420return message.Response; 422throw _clientDiagnostics.CreateRequestFailedException(message.Response); 463switch (message.Response.Status) 468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 470return Response.FromValue(value, message.Response); 473throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 546return Response.FromValue(value, message.Response); 549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw _clientDiagnostics.CreateRequestFailedException(message.Response); 624switch (message.Response.Status) 629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 631return Response.FromValue(value, message.Response); 634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 661switch (message.Response.Status) 666using var document = JsonDocument.Parse(message.Response.ContentStream); 668return Response.FromValue(value, message.Response); 671throw _clientDiagnostics.CreateRequestFailedException(message.Response); 734switch (message.Response.Status) 738return message.Response; 740throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 777switch (message.Response.Status) 781return message.Response; 783throw _clientDiagnostics.CreateRequestFailedException(message.Response); 837switch (message.Response.Status) 842using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 844return Response.FromValue(value, message.Response); 847return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 849throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 881switch (message.Response.Status) 886using var document = JsonDocument.Parse(message.Response.ContentStream); 888return Response.FromValue(value, message.Response); 891return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 893throw _clientDiagnostics.CreateRequestFailedException(message.Response); 947switch (message.Response.Status) 952return message.Response; 954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 986switch (message.Response.Status) 991return message.Response; 993throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1041switch (message.Response.Status) 1046using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1048return Response.FromValue(value, message.Response); 1051throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1078switch (message.Response.Status) 1083using var document = JsonDocument.Parse(message.Response.ContentStream); 1085return Response.FromValue(value, message.Response); 1088throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1129switch (message.Response.Status) 1134using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1136return Response.FromValue(value, message.Response); 1139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1166switch (message.Response.Status) 1171using var document = JsonDocument.Parse(message.Response.ContentStream); 1173return Response.FromValue(value, message.Response); 1176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1212switch (message.Response.Status) 1217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1219return Response.FromValue(value, message.Response); 1222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1244switch (message.Response.Status) 1249using var document = JsonDocument.Parse(message.Response.ContentStream); 1251return Response.FromValue(value, message.Response); 1254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1300switch (message.Response.Status) 1305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1307return Response.FromValue(value, message.Response); 1310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1342switch (message.Response.Status) 1347using var document = JsonDocument.Parse(message.Response.ContentStream); 1349return Response.FromValue(value, message.Response); 1352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskEncryptionSetsRestOperations.cs (76)
92switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 192switch (message.Response.Status) 196return message.Response; 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 283switch (message.Response.Status) 288using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 290return Response.FromValue(value, message.Response); 293return Response.FromValue((DiskEncryptionSetData)null, message.Response); 295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 327using var document = JsonDocument.Parse(message.Response.ContentStream); 329return Response.FromValue(value, message.Response); 332return Response.FromValue((DiskEncryptionSetData)null, message.Response); 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386return message.Response; 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 415switch (message.Response.Status) 420return message.Response; 422throw _clientDiagnostics.CreateRequestFailedException(message.Response); 463switch (message.Response.Status) 468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 470return Response.FromValue(value, message.Response); 473throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 546return Response.FromValue(value, message.Response); 549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw _clientDiagnostics.CreateRequestFailedException(message.Response); 624switch (message.Response.Status) 629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 631return Response.FromValue(value, message.Response); 634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 661switch (message.Response.Status) 666using var document = JsonDocument.Parse(message.Response.ContentStream); 668return Response.FromValue(value, message.Response); 671throw _clientDiagnostics.CreateRequestFailedException(message.Response); 712switch (message.Response.Status) 717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 719return Response.FromValue(value, message.Response); 722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 749switch (message.Response.Status) 754using var document = JsonDocument.Parse(message.Response.ContentStream); 756return Response.FromValue(value, message.Response); 759throw _clientDiagnostics.CreateRequestFailedException(message.Response); 795switch (message.Response.Status) 800using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 802return Response.FromValue(value, message.Response); 805throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 827switch (message.Response.Status) 832using var document = JsonDocument.Parse(message.Response.ContentStream); 834return Response.FromValue(value, message.Response); 837throw _clientDiagnostics.CreateRequestFailedException(message.Response); 883switch (message.Response.Status) 888using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 890return Response.FromValue(value, message.Response); 893throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 925switch (message.Response.Status) 930using var document = JsonDocument.Parse(message.Response.ContentStream); 932return Response.FromValue(value, message.Response); 935throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskRestorePointRestOperations.cs (38)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107return Response.FromValue((DiskRestorePointData)null, message.Response); 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156return Response.FromValue((DiskRestorePointData)null, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 220return Response.FromValue(value, message.Response); 223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 260using var document = JsonDocument.Parse(message.Response.ContentStream); 262return Response.FromValue(value, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 336switch (message.Response.Status) 340return message.Response; 342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 384switch (message.Response.Status) 388return message.Response; 390throw _clientDiagnostics.CreateRequestFailedException(message.Response); 452switch (message.Response.Status) 456return message.Response; 458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 499return message.Response; 501throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 599switch (message.Response.Status) 604using var document = JsonDocument.Parse(message.Response.ContentStream); 606return Response.FromValue(value, message.Response); 609throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DisksRestOperations.cs (72)
92switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 192switch (message.Response.Status) 196return message.Response; 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 283switch (message.Response.Status) 288using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 290return Response.FromValue(value, message.Response); 293return Response.FromValue((DiskData)null, message.Response); 295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 327using var document = JsonDocument.Parse(message.Response.ContentStream); 329return Response.FromValue(value, message.Response); 332return Response.FromValue((DiskData)null, message.Response); 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 380switch (message.Response.Status) 385return message.Response; 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 414switch (message.Response.Status) 419return message.Response; 421throw _clientDiagnostics.CreateRequestFailedException(message.Response); 462switch (message.Response.Status) 467using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 469return Response.FromValue(value, message.Response); 472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 494switch (message.Response.Status) 499using var document = JsonDocument.Parse(message.Response.ContentStream); 501return Response.FromValue(value, message.Response); 504throw _clientDiagnostics.CreateRequestFailedException(message.Response); 538switch (message.Response.Status) 543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 545return Response.FromValue(value, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 565switch (message.Response.Status) 570using var document = JsonDocument.Parse(message.Response.ContentStream); 572return Response.FromValue(value, message.Response); 575throw _clientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 636return message.Response; 638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 670switch (message.Response.Status) 674return message.Response; 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 723switch (message.Response.Status) 727return message.Response; 729throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 760return message.Response; 762throw _clientDiagnostics.CreateRequestFailedException(message.Response); 803switch (message.Response.Status) 808using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 810return Response.FromValue(value, message.Response); 813throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 840switch (message.Response.Status) 845using var document = JsonDocument.Parse(message.Response.ContentStream); 847return Response.FromValue(value, message.Response); 850throw _clientDiagnostics.CreateRequestFailedException(message.Response); 886switch (message.Response.Status) 891using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 893return Response.FromValue(value, message.Response); 896throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 918switch (message.Response.Status) 923using var document = JsonDocument.Parse(message.Response.ContentStream); 925return Response.FromValue(value, message.Response); 928throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleriesRestOperations.cs (60)
92switch (message.Response.Status) 97return message.Response; 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 136return message.Response; 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 197return message.Response; 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 293using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 295return Response.FromValue(value, message.Response); 298return Response.FromValue((GalleryData)null, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333using var document = JsonDocument.Parse(message.Response.ContentStream); 335return Response.FromValue(value, message.Response); 338return Response.FromValue((GalleryData)null, message.Response); 340throw _clientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392return message.Response; 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426return message.Response; 428throw _clientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw _clientDiagnostics.CreateRequestFailedException(message.Response); 623switch (message.Response.Status) 628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 630return Response.FromValue(value, message.Response); 633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 660switch (message.Response.Status) 665using var document = JsonDocument.Parse(message.Response.ContentStream); 667return Response.FromValue(value, message.Response); 670throw _clientDiagnostics.CreateRequestFailedException(message.Response); 706switch (message.Response.Status) 711using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 713return Response.FromValue(value, message.Response); 716throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 738switch (message.Response.Status) 743using var document = JsonDocument.Parse(message.Response.ContentStream); 745return Response.FromValue(value, message.Response); 748throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryApplicationsRestOperations.cs (44)
99switch (message.Response.Status) 104return message.Response; 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 143switch (message.Response.Status) 148return message.Response; 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 216return message.Response; 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324return Response.FromValue((GalleryApplicationData)null, message.Response); 326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363using var document = JsonDocument.Parse(message.Response.ContentStream); 365return Response.FromValue(value, message.Response); 368return Response.FromValue((GalleryApplicationData)null, message.Response); 370throw _clientDiagnostics.CreateRequestFailedException(message.Response); 424switch (message.Response.Status) 429return message.Response; 431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468return message.Response; 470throw _clientDiagnostics.CreateRequestFailedException(message.Response); 518switch (message.Response.Status) 523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 525return Response.FromValue(value, message.Response); 528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 611switch (message.Response.Status) 616using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 618return Response.FromValue(value, message.Response); 621throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 653switch (message.Response.Status) 658using var document = JsonDocument.Parse(message.Response.ContentStream); 660return Response.FromValue(value, message.Response); 663throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryApplicationVersionsRestOperations.cs (44)
106switch (message.Response.Status) 111return message.Response; 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 155switch (message.Response.Status) 160return message.Response; 162throw _clientDiagnostics.CreateRequestFailedException(message.Response); 232switch (message.Response.Status) 235return message.Response; 237throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 279switch (message.Response.Status) 282return message.Response; 284throw _clientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 357return Response.FromValue(value, message.Response); 360return Response.FromValue((GalleryApplicationVersionData)null, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 400switch (message.Response.Status) 405using var document = JsonDocument.Parse(message.Response.ContentStream); 407return Response.FromValue(value, message.Response); 410return Response.FromValue((GalleryApplicationVersionData)null, message.Response); 412throw _clientDiagnostics.CreateRequestFailedException(message.Response); 473switch (message.Response.Status) 478return message.Response; 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 517switch (message.Response.Status) 522return message.Response; 524throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 586return Response.FromValue(value, message.Response); 589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 621switch (message.Response.Status) 626using var document = JsonDocument.Parse(message.Response.ContentStream); 628return Response.FromValue(value, message.Response); 631throw _clientDiagnostics.CreateRequestFailedException(message.Response); 682switch (message.Response.Status) 687using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 689return Response.FromValue(value, message.Response); 692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 729switch (message.Response.Status) 734using var document = JsonDocument.Parse(message.Response.ContentStream); 736return Response.FromValue(value, message.Response); 739throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryImagesRestOperations.cs (44)
99switch (message.Response.Status) 104return message.Response; 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 143switch (message.Response.Status) 148return message.Response; 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 216return message.Response; 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324return Response.FromValue((GalleryImageData)null, message.Response); 326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363using var document = JsonDocument.Parse(message.Response.ContentStream); 365return Response.FromValue(value, message.Response); 368return Response.FromValue((GalleryImageData)null, message.Response); 370throw _clientDiagnostics.CreateRequestFailedException(message.Response); 424switch (message.Response.Status) 429return message.Response; 431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468return message.Response; 470throw _clientDiagnostics.CreateRequestFailedException(message.Response); 518switch (message.Response.Status) 523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 525return Response.FromValue(value, message.Response); 528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 611switch (message.Response.Status) 616using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 618return Response.FromValue(value, message.Response); 621throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 653switch (message.Response.Status) 658using var document = JsonDocument.Parse(message.Response.ContentStream); 660return Response.FromValue(value, message.Response); 663throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryImageVersionsRestOperations.cs (44)
106switch (message.Response.Status) 111return message.Response; 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 155switch (message.Response.Status) 160return message.Response; 162throw _clientDiagnostics.CreateRequestFailedException(message.Response); 232switch (message.Response.Status) 235return message.Response; 237throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 279switch (message.Response.Status) 282return message.Response; 284throw _clientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 357return Response.FromValue(value, message.Response); 360return Response.FromValue((GalleryImageVersionData)null, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 400switch (message.Response.Status) 405using var document = JsonDocument.Parse(message.Response.ContentStream); 407return Response.FromValue(value, message.Response); 410return Response.FromValue((GalleryImageVersionData)null, message.Response); 412throw _clientDiagnostics.CreateRequestFailedException(message.Response); 473switch (message.Response.Status) 478return message.Response; 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 517switch (message.Response.Status) 522return message.Response; 524throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 586return Response.FromValue(value, message.Response); 589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 621switch (message.Response.Status) 626using var document = JsonDocument.Parse(message.Response.ContentStream); 628return Response.FromValue(value, message.Response); 631throw _clientDiagnostics.CreateRequestFailedException(message.Response); 682switch (message.Response.Status) 687using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 689return Response.FromValue(value, message.Response); 692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 729switch (message.Response.Status) 734using var document = JsonDocument.Parse(message.Response.ContentStream); 736return Response.FromValue(value, message.Response); 739throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GallerySharingProfileRestOperations.cs (6)
92switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ImagesRestOperations.cs (60)
92switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 192switch (message.Response.Status) 196return message.Response; 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 287return message.Response; 289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 321return message.Response; 323throw _clientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 385return Response.FromValue((ImageData)null, message.Response); 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 415switch (message.Response.Status) 420using var document = JsonDocument.Parse(message.Response.ContentStream); 422return Response.FromValue(value, message.Response); 425return Response.FromValue((ImageData)null, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 500switch (message.Response.Status) 505using var document = JsonDocument.Parse(message.Response.ContentStream); 507return Response.FromValue(value, message.Response); 510throw _clientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 571switch (message.Response.Status) 576using var document = JsonDocument.Parse(message.Response.ContentStream); 578return Response.FromValue(value, message.Response); 581throw _clientDiagnostics.CreateRequestFailedException(message.Response); 622switch (message.Response.Status) 627using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 629return Response.FromValue(value, message.Response); 632throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 659switch (message.Response.Status) 664using var document = JsonDocument.Parse(message.Response.ContentStream); 666return Response.FromValue(value, message.Response); 669throw _clientDiagnostics.CreateRequestFailedException(message.Response); 705switch (message.Response.Status) 710using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 712return Response.FromValue(value, message.Response); 715throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 737switch (message.Response.Status) 742using var document = JsonDocument.Parse(message.Response.ContentStream); 744return Response.FromValue(value, message.Response); 747throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LogAnalyticsRestOperations.cs (12)
85switch (message.Response.Status) 89return message.Response; 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 118switch (message.Response.Status) 122return message.Response; 124throw _clientDiagnostics.CreateRequestFailedException(message.Response); 174switch (message.Response.Status) 178return message.Response; 180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 207switch (message.Response.Status) 211return message.Response; 213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ProximityPlacementGroupsRestOperations.cs (64)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 303return message.Response; 305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399return Response.FromValue((ProximityPlacementGroupData)null, message.Response); 401throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 429switch (message.Response.Status) 434using var document = JsonDocument.Parse(message.Response.ContentStream); 436return Response.FromValue(value, message.Response); 439return Response.FromValue((ProximityPlacementGroupData)null, message.Response); 441throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw _clientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 663switch (message.Response.Status) 668using var document = JsonDocument.Parse(message.Response.ContentStream); 670return Response.FromValue(value, message.Response); 673throw _clientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 719using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 721return Response.FromValue(value, message.Response); 724throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 751switch (message.Response.Status) 756using var document = JsonDocument.Parse(message.Response.ContentStream); 758return Response.FromValue(value, message.Response); 761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ResourceSkusRestOperations.cs (16)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw _clientDiagnostics.CreateRequestFailedException(message.Response); 150switch (message.Response.Status) 155using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 157return Response.FromValue(value, message.Response); 160throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 183switch (message.Response.Status) 188using var document = JsonDocument.Parse(message.Response.ContentStream); 190return Response.FromValue(value, message.Response); 193throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorePointCollectionsRestOperations.cs (64)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 306return message.Response; 308throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340return message.Response; 342throw _clientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 399using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 401return Response.FromValue(value, message.Response); 404return Response.FromValue((RestorePointGroupData)null, message.Response); 406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 434switch (message.Response.Status) 439using var document = JsonDocument.Parse(message.Response.ContentStream); 441return Response.FromValue(value, message.Response); 444return Response.FromValue((RestorePointGroupData)null, message.Response); 446throw _clientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 494return Response.FromValue(value, message.Response); 497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 519switch (message.Response.Status) 524using var document = JsonDocument.Parse(message.Response.ContentStream); 526return Response.FromValue(value, message.Response); 529throw _clientDiagnostics.CreateRequestFailedException(message.Response); 563switch (message.Response.Status) 568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 570return Response.FromValue(value, message.Response); 573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 590switch (message.Response.Status) 595using var document = JsonDocument.Parse(message.Response.ContentStream); 597return Response.FromValue(value, message.Response); 600throw _clientDiagnostics.CreateRequestFailedException(message.Response); 641switch (message.Response.Status) 646using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 648return Response.FromValue(value, message.Response); 651throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678switch (message.Response.Status) 683using var document = JsonDocument.Parse(message.Response.ContentStream); 685return Response.FromValue(value, message.Response); 688throw _clientDiagnostics.CreateRequestFailedException(message.Response); 724switch (message.Response.Status) 729using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 731return Response.FromValue(value, message.Response); 734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 761using var document = JsonDocument.Parse(message.Response.ContentStream); 763return Response.FromValue(value, message.Response); 766throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorePointsRestOperations.cs (22)
98switch (message.Response.Status) 101return message.Response; 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 143return message.Response; 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 199switch (message.Response.Status) 204return message.Response; 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243return message.Response; 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 304using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 306return Response.FromValue(value, message.Response); 309return Response.FromValue((RestorePointData)null, message.Response); 311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343switch (message.Response.Status) 348using var document = JsonDocument.Parse(message.Response.ContentStream); 350return Response.FromValue(value, message.Response); 353return Response.FromValue((RestorePointData)null, message.Response); 355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleriesRestOperations.cs (24)
82switch (message.Response.Status) 87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 89return Response.FromValue(value, message.Response); 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw _clientDiagnostics.CreateRequestFailedException(message.Response); 172switch (message.Response.Status) 177using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 179return Response.FromValue(value, message.Response); 182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 214using var document = JsonDocument.Parse(message.Response.ContentStream); 216return Response.FromValue(value, message.Response); 219throw _clientDiagnostics.CreateRequestFailedException(message.Response); 261switch (message.Response.Status) 266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 268return Response.FromValue(value, message.Response); 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 299switch (message.Response.Status) 304using var document = JsonDocument.Parse(message.Response.ContentStream); 306return Response.FromValue(value, message.Response); 309throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleryImagesRestOperations.cs (24)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleryImageVersionsRestOperations.cs (24)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw _clientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 326return Response.FromValue(value, message.Response); 329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 372using var document = JsonDocument.Parse(message.Response.ContentStream); 374return Response.FromValue(value, message.Response); 377throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SnapshotsRestOperations.cs (72)
92switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 192switch (message.Response.Status) 196return message.Response; 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 283switch (message.Response.Status) 288using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 290return Response.FromValue(value, message.Response); 293return Response.FromValue((SnapshotData)null, message.Response); 295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 327using var document = JsonDocument.Parse(message.Response.ContentStream); 329return Response.FromValue(value, message.Response); 332return Response.FromValue((SnapshotData)null, message.Response); 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 380switch (message.Response.Status) 385return message.Response; 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 414switch (message.Response.Status) 419return message.Response; 421throw _clientDiagnostics.CreateRequestFailedException(message.Response); 462switch (message.Response.Status) 467using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 469return Response.FromValue(value, message.Response); 472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 494switch (message.Response.Status) 499using var document = JsonDocument.Parse(message.Response.ContentStream); 501return Response.FromValue(value, message.Response); 504throw _clientDiagnostics.CreateRequestFailedException(message.Response); 538switch (message.Response.Status) 543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 545return Response.FromValue(value, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 565switch (message.Response.Status) 570using var document = JsonDocument.Parse(message.Response.ContentStream); 572return Response.FromValue(value, message.Response); 575throw _clientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 636return message.Response; 638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 670switch (message.Response.Status) 674return message.Response; 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 723switch (message.Response.Status) 727return message.Response; 729throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 760return message.Response; 762throw _clientDiagnostics.CreateRequestFailedException(message.Response); 803switch (message.Response.Status) 808using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 810return Response.FromValue(value, message.Response); 813throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 840switch (message.Response.Status) 845using var document = JsonDocument.Parse(message.Response.ContentStream); 847return Response.FromValue(value, message.Response); 850throw _clientDiagnostics.CreateRequestFailedException(message.Response); 886switch (message.Response.Status) 891using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 893return Response.FromValue(value, message.Response); 896throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 918switch (message.Response.Status) 923using var document = JsonDocument.Parse(message.Response.ContentStream); 925return Response.FromValue(value, message.Response); 928throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SshPublicKeysRestOperations.cs (72)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return Response.FromValue(value, message.Response); 158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 180switch (message.Response.Status) 185using var document = JsonDocument.Parse(message.Response.ContentStream); 187return Response.FromValue(value, message.Response); 190throw _clientDiagnostics.CreateRequestFailedException(message.Response); 246switch (message.Response.Status) 252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 254return Response.FromValue(value, message.Response); 257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 295using var document = JsonDocument.Parse(message.Response.ContentStream); 297return Response.FromValue(value, message.Response); 300throw _clientDiagnostics.CreateRequestFailedException(message.Response); 356switch (message.Response.Status) 361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 363return Response.FromValue(value, message.Response); 366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 398switch (message.Response.Status) 403using var document = JsonDocument.Parse(message.Response.ContentStream); 405return Response.FromValue(value, message.Response); 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 454switch (message.Response.Status) 458return message.Response; 460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 491return message.Response; 493throw _clientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550return Response.FromValue((SshPublicKeyData)null, message.Response); 552throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 579switch (message.Response.Status) 584using var document = JsonDocument.Parse(message.Response.ContentStream); 586return Response.FromValue(value, message.Response); 589return Response.FromValue((SshPublicKeyData)null, message.Response); 591throw _clientDiagnostics.CreateRequestFailedException(message.Response); 639switch (message.Response.Status) 644using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 646return Response.FromValue(value, message.Response); 649throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 676switch (message.Response.Status) 681using var document = JsonDocument.Parse(message.Response.ContentStream); 683return Response.FromValue(value, message.Response); 686throw _clientDiagnostics.CreateRequestFailedException(message.Response); 722switch (message.Response.Status) 727using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 729return Response.FromValue(value, message.Response); 732throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 754switch (message.Response.Status) 759using var document = JsonDocument.Parse(message.Response.ContentStream); 761return Response.FromValue(value, message.Response); 764throw _clientDiagnostics.CreateRequestFailedException(message.Response); 805switch (message.Response.Status) 810using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 812return Response.FromValue(value, message.Response); 815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 842switch (message.Response.Status) 847using var document = JsonDocument.Parse(message.Response.ContentStream); 849return Response.FromValue(value, message.Response); 852throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsageRestOperations.cs (16)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 160switch (message.Response.Status) 165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 167return Response.FromValue(value, message.Response); 170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineExtensionImagesRestOperations.cs (26)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107return Response.FromValue((VirtualMachineExtensionImageData)null, message.Response); 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156return Response.FromValue((VirtualMachineExtensionImageData)null, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 218return Response.FromValue(value, message.Response); 221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 260return Response.FromValue(value, message.Response); 263throw _clientDiagnostics.CreateRequestFailedException(message.Response); 333switch (message.Response.Status) 338using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 383switch (message.Response.Status) 388using var document = JsonDocument.Parse(message.Response.ContentStream); 395return Response.FromValue(value, message.Response); 398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineExtensionsRestOperations.cs (36)
99switch (message.Response.Status) 103return message.Response; 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142switch (message.Response.Status) 146return message.Response; 148throw _clientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 256return message.Response; 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316return message.Response; 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426return Response.FromValue((VirtualMachineExtensionData)null, message.Response); 428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 461switch (message.Response.Status) 466using var document = JsonDocument.Parse(message.Response.ContentStream); 468return Response.FromValue(value, message.Response); 471return Response.FromValue((VirtualMachineExtensionData)null, message.Response); 473throw _clientDiagnostics.CreateRequestFailedException(message.Response); 526switch (message.Response.Status) 531using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 533return Response.FromValue(value, message.Response); 536throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineImagesEdgeZoneRestOperations.cs (40)
112switch (message.Response.Status) 117using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 119return Response.FromValue(value, message.Response); 122throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 169switch (message.Response.Status) 174using var document = JsonDocument.Parse(message.Response.ContentStream); 176return Response.FromValue(value, message.Response); 179throw _clientDiagnostics.CreateRequestFailedException(message.Response); 263switch (message.Response.Status) 268using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 275return Response.FromValue(value, message.Response); 278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 323switch (message.Response.Status) 328using var document = JsonDocument.Parse(message.Response.ContentStream); 335return Response.FromValue(value, message.Response); 338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 405return Response.FromValue(value, message.Response); 408throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 440switch (message.Response.Status) 445using var document = JsonDocument.Parse(message.Response.ContentStream); 452return Response.FromValue(value, message.Response); 455throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 515return Response.FromValue(value, message.Response); 518throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 557return Response.FromValue(value, message.Response); 560throw _clientDiagnostics.CreateRequestFailedException(message.Response); 622switch (message.Response.Status) 627using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 634return Response.FromValue(value, message.Response); 637throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 686return Response.FromValue(value, message.Response); 689throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineImagesRestOperations.cs (40)
105switch (message.Response.Status) 110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 112return Response.FromValue(value, message.Response); 115throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw _clientDiagnostics.CreateRequestFailedException(message.Response); 244switch (message.Response.Status) 249using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 256return Response.FromValue(value, message.Response); 259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 299switch (message.Response.Status) 304using var document = JsonDocument.Parse(message.Response.ContentStream); 311return Response.FromValue(value, message.Response); 314throw _clientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 367using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 374return Response.FromValue(value, message.Response); 377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 404switch (message.Response.Status) 409using var document = JsonDocument.Parse(message.Response.ContentStream); 416return Response.FromValue(value, message.Response); 419throw _clientDiagnostics.CreateRequestFailedException(message.Response); 460switch (message.Response.Status) 465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 472return Response.FromValue(value, message.Response); 475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 567switch (message.Response.Status) 572using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 579return Response.FromValue(value, message.Response); 582throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 619using var document = JsonDocument.Parse(message.Response.ContentStream); 626return Response.FromValue(value, message.Response); 629throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineRunCommandsRestOperations.cs (68)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw _clientDiagnostics.CreateRequestFailedException(message.Response); 276switch (message.Response.Status) 280return message.Response; 282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319switch (message.Response.Status) 323return message.Response; 325throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 391return message.Response; 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 433return message.Response; 435throw _clientDiagnostics.CreateRequestFailedException(message.Response); 489switch (message.Response.Status) 494return message.Response; 496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 528switch (message.Response.Status) 533return message.Response; 535throw _clientDiagnostics.CreateRequestFailedException(message.Response); 594switch (message.Response.Status) 599using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 601return Response.FromValue(value, message.Response); 604return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 639switch (message.Response.Status) 644using var document = JsonDocument.Parse(message.Response.ContentStream); 646return Response.FromValue(value, message.Response); 649return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 651throw _clientDiagnostics.CreateRequestFailedException(message.Response); 704switch (message.Response.Status) 709using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 711return Response.FromValue(value, message.Response); 714throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 742switch (message.Response.Status) 747using var document = JsonDocument.Parse(message.Response.ContentStream); 749return Response.FromValue(value, message.Response); 752throw _clientDiagnostics.CreateRequestFailedException(message.Response); 793switch (message.Response.Status) 798using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 800return Response.FromValue(value, message.Response); 803throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 830switch (message.Response.Status) 835using var document = JsonDocument.Parse(message.Response.ContentStream); 837return Response.FromValue(value, message.Response); 840throw _clientDiagnostics.CreateRequestFailedException(message.Response); 887switch (message.Response.Status) 892using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 894return Response.FromValue(value, message.Response); 897throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 930switch (message.Response.Status) 935using var document = JsonDocument.Parse(message.Response.ContentStream); 937return Response.FromValue(value, message.Response); 940throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetExtensionsRestOperations.cs (44)
99switch (message.Response.Status) 103return message.Response; 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142switch (message.Response.Status) 146return message.Response; 148throw _clientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 215return message.Response; 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 254switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428return Response.FromValue((VirtualMachineScaleSetExtensionData)null, message.Response); 430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468using var document = JsonDocument.Parse(message.Response.ContentStream); 470return Response.FromValue(value, message.Response); 473return Response.FromValue((VirtualMachineScaleSetExtensionData)null, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 523switch (message.Response.Status) 528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 530return Response.FromValue(value, message.Response); 533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 560switch (message.Response.Status) 565using var document = JsonDocument.Parse(message.Response.ContentStream); 567return Response.FromValue(value, message.Response); 570throw _clientDiagnostics.CreateRequestFailedException(message.Response); 616switch (message.Response.Status) 621using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 623return Response.FromValue(value, message.Response); 626throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetRollingUpgradesRestOperations.cs (28)
82switch (message.Response.Status) 86return message.Response; 88throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 119return message.Response; 121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 168switch (message.Response.Status) 172return message.Response; 174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 201switch (message.Response.Status) 205return message.Response; 207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 254switch (message.Response.Status) 258return message.Response; 260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 291return message.Response; 293throw _clientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 348return Response.FromValue(value, message.Response); 351return Response.FromValue((VirtualMachineScaleSetRollingUpgradeData)null, message.Response); 353throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 385using var document = JsonDocument.Parse(message.Response.ContentStream); 387return Response.FromValue(value, message.Response); 390return Response.FromValue((VirtualMachineScaleSetRollingUpgradeData)null, message.Response); 392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetsRestOperations.cs (196)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 179return message.Response; 181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213switch (message.Response.Status) 217return message.Response; 219throw _clientDiagnostics.CreateRequestFailedException(message.Response); 275switch (message.Response.Status) 278return message.Response; 280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 312switch (message.Response.Status) 315return message.Response; 317throw _clientDiagnostics.CreateRequestFailedException(message.Response); 368switch (message.Response.Status) 373return message.Response; 375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 403switch (message.Response.Status) 408return message.Response; 410throw _clientDiagnostics.CreateRequestFailedException(message.Response); 462switch (message.Response.Status) 467using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 469return Response.FromValue(value, message.Response); 472return Response.FromValue((VirtualMachineScaleSetData)null, message.Response); 474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512return Response.FromValue((VirtualMachineScaleSetData)null, message.Response); 514throw _clientDiagnostics.CreateRequestFailedException(message.Response); 569switch (message.Response.Status) 573return message.Response; 575throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 603switch (message.Response.Status) 607return message.Response; 609throw _clientDiagnostics.CreateRequestFailedException(message.Response); 670switch (message.Response.Status) 674return message.Response; 676throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 709switch (message.Response.Status) 713return message.Response; 715throw _clientDiagnostics.CreateRequestFailedException(message.Response); 763switch (message.Response.Status) 768using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 770return Response.FromValue(value, message.Response); 773throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 800switch (message.Response.Status) 805using var document = JsonDocument.Parse(message.Response.ContentStream); 807return Response.FromValue(value, message.Response); 810throw _clientDiagnostics.CreateRequestFailedException(message.Response); 851switch (message.Response.Status) 856using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 858return Response.FromValue(value, message.Response); 861throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 883switch (message.Response.Status) 888using var document = JsonDocument.Parse(message.Response.ContentStream); 890return Response.FromValue(value, message.Response); 893throw _clientDiagnostics.CreateRequestFailedException(message.Response); 927switch (message.Response.Status) 932using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 934return Response.FromValue(value, message.Response); 937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 954switch (message.Response.Status) 959using var document = JsonDocument.Parse(message.Response.ContentStream); 961return Response.FromValue(value, message.Response); 964throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1012switch (message.Response.Status) 1017using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1019return Response.FromValue(value, message.Response); 1022throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1049switch (message.Response.Status) 1054using var document = JsonDocument.Parse(message.Response.ContentStream); 1056return Response.FromValue(value, message.Response); 1059throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1107switch (message.Response.Status) 1112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1114return Response.FromValue(value, message.Response); 1117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1144switch (message.Response.Status) 1149using var document = JsonDocument.Parse(message.Response.ContentStream); 1151return Response.FromValue(value, message.Response); 1154throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1214switch (message.Response.Status) 1218return message.Response; 1220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1249switch (message.Response.Status) 1253return message.Response; 1255throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1310switch (message.Response.Status) 1314return message.Response; 1316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1344switch (message.Response.Status) 1348return message.Response; 1350throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1405switch (message.Response.Status) 1409return message.Response; 1411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1439switch (message.Response.Status) 1443return message.Response; 1445throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1500switch (message.Response.Status) 1504return message.Response; 1506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1534switch (message.Response.Status) 1538return message.Response; 1540throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1595switch (message.Response.Status) 1599return message.Response; 1601throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1629switch (message.Response.Status) 1633return message.Response; 1635throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1691switch (message.Response.Status) 1695return message.Response; 1697throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1729switch (message.Response.Status) 1733return message.Response; 1735throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1790switch (message.Response.Status) 1794return message.Response; 1796throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1824switch (message.Response.Status) 1828return message.Response; 1830throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1885switch (message.Response.Status) 1889return message.Response; 1891throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1919switch (message.Response.Status) 1923return message.Response; 1925throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1975switch (message.Response.Status) 1980using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1982return Response.FromValue(value, message.Response); 1985throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2013switch (message.Response.Status) 2018using var document = JsonDocument.Parse(message.Response.ContentStream); 2020return Response.FromValue(value, message.Response); 2023throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2079switch (message.Response.Status) 2082return message.Response; 2084throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2116switch (message.Response.Status) 2119return message.Response; 2121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2177switch (message.Response.Status) 2181return message.Response; 2183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2215switch (message.Response.Status) 2219return message.Response; 2221throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2262switch (message.Response.Status) 2267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2269return Response.FromValue(value, message.Response); 2272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2299switch (message.Response.Status) 2304using var document = JsonDocument.Parse(message.Response.ContentStream); 2306return Response.FromValue(value, message.Response); 2309throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2350switch (message.Response.Status) 2355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2357return Response.FromValue(value, message.Response); 2360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2387switch (message.Response.Status) 2392using var document = JsonDocument.Parse(message.Response.ContentStream); 2394return Response.FromValue(value, message.Response); 2397throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2433switch (message.Response.Status) 2438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2440return Response.FromValue(value, message.Response); 2443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2465switch (message.Response.Status) 2470using var document = JsonDocument.Parse(message.Response.ContentStream); 2472return Response.FromValue(value, message.Response); 2475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2521switch (message.Response.Status) 2526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2528return Response.FromValue(value, message.Response); 2531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2563switch (message.Response.Status) 2568using var document = JsonDocument.Parse(message.Response.ContentStream); 2570return Response.FromValue(value, message.Response); 2573throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2619switch (message.Response.Status) 2624using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2626return Response.FromValue(value, message.Response); 2629throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2661switch (message.Response.Status) 2666using var document = JsonDocument.Parse(message.Response.ContentStream); 2668return Response.FromValue(value, message.Response); 2671throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMExtensionsRestOperations.cs (36)
106switch (message.Response.Status) 110return message.Response; 112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 158return message.Response; 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 230switch (message.Response.Status) 233return message.Response; 235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 277switch (message.Response.Status) 280return message.Response; 282throw _clientDiagnostics.CreateRequestFailedException(message.Response); 343switch (message.Response.Status) 348return message.Response; 350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 392return message.Response; 394throw _clientDiagnostics.CreateRequestFailedException(message.Response); 460switch (message.Response.Status) 465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 467return Response.FromValue(value, message.Response); 470return Response.FromValue((VirtualMachineScaleSetVMExtensionData)null, message.Response); 472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 515using var document = JsonDocument.Parse(message.Response.ContentStream); 517return Response.FromValue(value, message.Response); 520return Response.FromValue((VirtualMachineScaleSetVMExtensionData)null, message.Response); 522throw _clientDiagnostics.CreateRequestFailedException(message.Response); 582switch (message.Response.Status) 587using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 589return Response.FromValue(value, message.Response); 592throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 625switch (message.Response.Status) 630using var document = JsonDocument.Parse(message.Response.ContentStream); 632return Response.FromValue(value, message.Response); 635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMRunCommandsRestOperations.cs (44)
106switch (message.Response.Status) 110return message.Response; 112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 158return message.Response; 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 230switch (message.Response.Status) 233return message.Response; 235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 277switch (message.Response.Status) 280return message.Response; 282throw _clientDiagnostics.CreateRequestFailedException(message.Response); 343switch (message.Response.Status) 348return message.Response; 350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 392return message.Response; 394throw _clientDiagnostics.CreateRequestFailedException(message.Response); 460switch (message.Response.Status) 465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 467return Response.FromValue(value, message.Response); 470return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 515using var document = JsonDocument.Parse(message.Response.ContentStream); 517return Response.FromValue(value, message.Response); 520return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 522throw _clientDiagnostics.CreateRequestFailedException(message.Response); 582switch (message.Response.Status) 587using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 589return Response.FromValue(value, message.Response); 592throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 625switch (message.Response.Status) 630using var document = JsonDocument.Parse(message.Response.ContentStream); 632return Response.FromValue(value, message.Response); 635throw _clientDiagnostics.CreateRequestFailedException(message.Response); 687switch (message.Response.Status) 692using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 694return Response.FromValue(value, message.Response); 697throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 735switch (message.Response.Status) 740using var document = JsonDocument.Parse(message.Response.ContentStream); 742return Response.FromValue(value, message.Response); 745throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMsRestOperations.cs (114)
98switch (message.Response.Status) 102return message.Response; 104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 141return message.Response; 143throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 201return message.Response; 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 239return message.Response; 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 295switch (message.Response.Status) 299return message.Response; 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 337return message.Response; 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 402switch (message.Response.Status) 406return message.Response; 408throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 445switch (message.Response.Status) 449return message.Response; 451throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514return message.Response; 516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 549switch (message.Response.Status) 554return message.Response; 556throw _clientDiagnostics.CreateRequestFailedException(message.Response); 615switch (message.Response.Status) 620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 622return Response.FromValue(value, message.Response); 625return Response.FromValue((VirtualMachineScaleSetVMData)null, message.Response); 627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 660switch (message.Response.Status) 665using var document = JsonDocument.Parse(message.Response.ContentStream); 667return Response.FromValue(value, message.Response); 670return Response.FromValue((VirtualMachineScaleSetVMData)null, message.Response); 672throw _clientDiagnostics.CreateRequestFailedException(message.Response); 727switch (message.Response.Status) 732using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 734return Response.FromValue(value, message.Response); 737throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 769switch (message.Response.Status) 774using var document = JsonDocument.Parse(message.Response.ContentStream); 776return Response.FromValue(value, message.Response); 779throw _clientDiagnostics.CreateRequestFailedException(message.Response); 842switch (message.Response.Status) 847using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 849return Response.FromValue(value, message.Response); 852throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 882switch (message.Response.Status) 887using var document = JsonDocument.Parse(message.Response.ContentStream); 889return Response.FromValue(value, message.Response); 892throw _clientDiagnostics.CreateRequestFailedException(message.Response); 951switch (message.Response.Status) 955return message.Response; 957throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 990switch (message.Response.Status) 994return message.Response; 996throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1050switch (message.Response.Status) 1054return message.Response; 1056throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1088switch (message.Response.Status) 1092return message.Response; 1094throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1148switch (message.Response.Status) 1152return message.Response; 1154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1186switch (message.Response.Status) 1190return message.Response; 1192throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1246switch (message.Response.Status) 1250return message.Response; 1252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1284switch (message.Response.Status) 1288return message.Response; 1290throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1350switch (message.Response.Status) 1355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1357return Response.FromValue(value, message.Response); 1360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1393switch (message.Response.Status) 1398using var document = JsonDocument.Parse(message.Response.ContentStream); 1400return Response.FromValue(value, message.Response); 1403throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1457switch (message.Response.Status) 1461return message.Response; 1463throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1495switch (message.Response.Status) 1499return message.Response; 1501throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1555switch (message.Response.Status) 1558return message.Response; 1560throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1592switch (message.Response.Status) 1595return message.Response; 1597throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1661switch (message.Response.Status) 1665return message.Response; 1667throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1704switch (message.Response.Status) 1708return message.Response; 1710throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1759switch (message.Response.Status) 1764using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1766return Response.FromValue(value, message.Response); 1769throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1804switch (message.Response.Status) 1809using var document = JsonDocument.Parse(message.Response.ContentStream); 1811return Response.FromValue(value, message.Response); 1814throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineSizesRestOperations.cs (8)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachinesRestOperations.cs (190)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 176switch (message.Response.Status) 180return message.Response; 182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 218return message.Response; 220throw _clientDiagnostics.CreateRequestFailedException(message.Response); 276switch (message.Response.Status) 280return message.Response; 282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 314switch (message.Response.Status) 318return message.Response; 320throw _clientDiagnostics.CreateRequestFailedException(message.Response); 376switch (message.Response.Status) 379return message.Response; 381throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 413switch (message.Response.Status) 416return message.Response; 418throw _clientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474return message.Response; 476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 504switch (message.Response.Status) 509return message.Response; 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 563switch (message.Response.Status) 568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 570return Response.FromValue(value, message.Response); 573return Response.FromValue((VirtualMachineData)null, message.Response); 575throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 603switch (message.Response.Status) 608using var document = JsonDocument.Parse(message.Response.ContentStream); 610return Response.FromValue(value, message.Response); 613return Response.FromValue((VirtualMachineData)null, message.Response); 615throw _clientDiagnostics.CreateRequestFailedException(message.Response); 663switch (message.Response.Status) 668using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 670return Response.FromValue(value, message.Response); 673throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 700switch (message.Response.Status) 705using var document = JsonDocument.Parse(message.Response.ContentStream); 707return Response.FromValue(value, message.Response); 710throw _clientDiagnostics.CreateRequestFailedException(message.Response); 757switch (message.Response.Status) 761return message.Response; 763throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 790switch (message.Response.Status) 794return message.Response; 796throw _clientDiagnostics.CreateRequestFailedException(message.Response); 843switch (message.Response.Status) 847return message.Response; 849throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 876switch (message.Response.Status) 880return message.Response; 882throw _clientDiagnostics.CreateRequestFailedException(message.Response); 929switch (message.Response.Status) 932return message.Response; 934throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 961switch (message.Response.Status) 964return message.Response; 966throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1007switch (message.Response.Status) 1012using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1014return Response.FromValue(value, message.Response); 1017throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1039switch (message.Response.Status) 1044using var document = JsonDocument.Parse(message.Response.ContentStream); 1046return Response.FromValue(value, message.Response); 1049throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1088switch (message.Response.Status) 1093using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1095return Response.FromValue(value, message.Response); 1098throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1116switch (message.Response.Status) 1121using var document = JsonDocument.Parse(message.Response.ContentStream); 1123return Response.FromValue(value, message.Response); 1126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1174switch (message.Response.Status) 1179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1181return Response.FromValue(value, message.Response); 1184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1211switch (message.Response.Status) 1216using var document = JsonDocument.Parse(message.Response.ContentStream); 1218return Response.FromValue(value, message.Response); 1221throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1273switch (message.Response.Status) 1277return message.Response; 1279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1307switch (message.Response.Status) 1311return message.Response; 1313throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1361switch (message.Response.Status) 1365return message.Response; 1367throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1394switch (message.Response.Status) 1398return message.Response; 1400throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1447switch (message.Response.Status) 1451return message.Response; 1453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1480switch (message.Response.Status) 1484return message.Response; 1486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1533switch (message.Response.Status) 1537return message.Response; 1539throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1566switch (message.Response.Status) 1570return message.Response; 1572throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1619switch (message.Response.Status) 1623return message.Response; 1625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1652switch (message.Response.Status) 1656return message.Response; 1658throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1713switch (message.Response.Status) 1717return message.Response; 1719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1747switch (message.Response.Status) 1751return message.Response; 1753throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1806switch (message.Response.Status) 1811using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1813return Response.FromValue(value, message.Response); 1816throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1844switch (message.Response.Status) 1849using var document = JsonDocument.Parse(message.Response.ContentStream); 1851return Response.FromValue(value, message.Response); 1854throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1901switch (message.Response.Status) 1905return message.Response; 1907throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1934switch (message.Response.Status) 1938return message.Response; 1940throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1987switch (message.Response.Status) 1990return message.Response; 1992throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2019switch (message.Response.Status) 2022return message.Response; 2024throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2072switch (message.Response.Status) 2076return message.Response; 2078throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2105switch (message.Response.Status) 2109return message.Response; 2111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2168switch (message.Response.Status) 2172return message.Response; 2174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2206switch (message.Response.Status) 2210return message.Response; 2212throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2269switch (message.Response.Status) 2273return message.Response; 2275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2307switch (message.Response.Status) 2311return message.Response; 2313throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2354switch (message.Response.Status) 2359using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2361return Response.FromValue(value, message.Response); 2364throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2391switch (message.Response.Status) 2396using var document = JsonDocument.Parse(message.Response.ContentStream); 2398return Response.FromValue(value, message.Response); 2401throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2442switch (message.Response.Status) 2447using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2449return Response.FromValue(value, message.Response); 2452throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2479switch (message.Response.Status) 2484using var document = JsonDocument.Parse(message.Response.ContentStream); 2486return Response.FromValue(value, message.Response); 2489throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2526switch (message.Response.Status) 2531using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2533return Response.FromValue(value, message.Response); 2536throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2559switch (message.Response.Status) 2564using var document = JsonDocument.Parse(message.Response.ContentStream); 2566return Response.FromValue(value, message.Response); 2569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.CosmosDB (997)
Generated\RestOperations\CassandraResourcesRestOperations.cs (116)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((CassandraKeyspaceData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((CassandraKeyspaceData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 414return message.Response; 416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519return Response.FromValue((ThroughputSettingsData)null, message.Response); 521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563return Response.FromValue((ThroughputSettingsData)null, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 633return message.Response; 635throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 676return message.Response; 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 737return message.Response; 739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 771switch (message.Response.Status) 775return message.Response; 777throw _clientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 836return message.Response; 838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 874return message.Response; 876throw _clientDiagnostics.CreateRequestFailedException(message.Response); 931switch (message.Response.Status) 936using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 938return Response.FromValue(value, message.Response); 941throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 973switch (message.Response.Status) 978using var document = JsonDocument.Parse(message.Response.ContentStream); 980return Response.FromValue(value, message.Response); 983throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1044switch (message.Response.Status) 1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1051return Response.FromValue(value, message.Response); 1054return Response.FromValue((CassandraTableData)null, message.Response); 1056throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1093switch (message.Response.Status) 1098using var document = JsonDocument.Parse(message.Response.ContentStream); 1100return Response.FromValue(value, message.Response); 1103return Response.FromValue((CassandraTableData)null, message.Response); 1105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1175switch (message.Response.Status) 1179return message.Response; 1181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1223switch (message.Response.Status) 1227return message.Response; 1229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1289switch (message.Response.Status) 1293return message.Response; 1295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1332switch (message.Response.Status) 1336return message.Response; 1338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1400switch (message.Response.Status) 1405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1407return Response.FromValue(value, message.Response); 1410return Response.FromValue((ThroughputSettingsData)null, message.Response); 1412throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1449switch (message.Response.Status) 1454using var document = JsonDocument.Parse(message.Response.ContentStream); 1456return Response.FromValue(value, message.Response); 1459return Response.FromValue((ThroughputSettingsData)null, message.Response); 1461throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1532switch (message.Response.Status) 1536return message.Response; 1538throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1580switch (message.Response.Status) 1584return message.Response; 1586throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1648switch (message.Response.Status) 1652return message.Response; 1654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1691switch (message.Response.Status) 1695return message.Response; 1697throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1759switch (message.Response.Status) 1763return message.Response; 1765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1802switch (message.Response.Status) 1806return message.Response; 1808throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionPartitionRegionRestOperations.cs (8)
115switch (message.Response.Status) 120using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 122return Response.FromValue(value, message.Response); 125throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionPartitionRestOperations.cs (16)
108switch (message.Response.Status) 113using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 115return Response.FromValue(value, message.Response); 118throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170throw _clientDiagnostics.CreateRequestFailedException(message.Response); 237switch (message.Response.Status) 242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 244return Response.FromValue(value, message.Response); 247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 285switch (message.Response.Status) 290using var document = JsonDocument.Parse(message.Response.ContentStream); 292return Response.FromValue(value, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionRegionRestOperations.cs (8)
115switch (message.Response.Status) 120using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 122return Response.FromValue(value, message.Response); 125throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionRestOperations.cs (24)
108switch (message.Response.Status) 113using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 115return Response.FromValue(value, message.Response); 118throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170throw _clientDiagnostics.CreateRequestFailedException(message.Response); 237switch (message.Response.Status) 242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 244return Response.FromValue(value, message.Response); 247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 285switch (message.Response.Status) 290using var document = JsonDocument.Parse(message.Response.ContentStream); 292return Response.FromValue(value, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 357switch (message.Response.Status) 362using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 364return Response.FromValue(value, message.Response); 367throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 404switch (message.Response.Status) 409using var document = JsonDocument.Parse(message.Response.ContentStream); 411return Response.FromValue(value, message.Response); 414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAccountRegionRestOperations.cs (8)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAccountsRestOperations.cs (124)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((DatabaseAccountData)null, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((DatabaseAccountData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 197return message.Response; 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 292switch (message.Response.Status) 295return message.Response; 297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 332return message.Response; 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 380switch (message.Response.Status) 384return message.Response; 386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 413switch (message.Response.Status) 417return message.Response; 419throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 479return message.Response; 481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 517return message.Response; 519throw _clientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw _clientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 663switch (message.Response.Status) 668using var document = JsonDocument.Parse(message.Response.ContentStream); 670return Response.FromValue(value, message.Response); 673throw _clientDiagnostics.CreateRequestFailedException(message.Response); 721switch (message.Response.Status) 726using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 728return Response.FromValue(value, message.Response); 731throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 758switch (message.Response.Status) 763using var document = JsonDocument.Parse(message.Response.ContentStream); 765return Response.FromValue(value, message.Response); 768throw _clientDiagnostics.CreateRequestFailedException(message.Response); 816switch (message.Response.Status) 821using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 823return Response.FromValue(value, message.Response); 826throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 853switch (message.Response.Status) 858using var document = JsonDocument.Parse(message.Response.ContentStream); 860return Response.FromValue(value, message.Response); 863throw _clientDiagnostics.CreateRequestFailedException(message.Response); 920switch (message.Response.Status) 924return message.Response; 926throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 958switch (message.Response.Status) 962return message.Response; 964throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1021switch (message.Response.Status) 1025return message.Response; 1027throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1059switch (message.Response.Status) 1063return message.Response; 1065throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1113switch (message.Response.Status) 1118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1120return Response.FromValue(value, message.Response); 1123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1150switch (message.Response.Status) 1155using var document = JsonDocument.Parse(message.Response.ContentStream); 1157return Response.FromValue(value, message.Response); 1160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1216switch (message.Response.Status) 1220return message.Response; 1222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1254switch (message.Response.Status) 1258return message.Response; 1260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1292switch (message.Response.Status) 1297return Response.FromValue(value, message.Response); 1302return Response.FromValue(value, message.Response); 1305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1322switch (message.Response.Status) 1327return Response.FromValue(value, message.Response); 1332return Response.FromValue(value, message.Response); 1335throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1389switch (message.Response.Status) 1394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1396return Response.FromValue(value, message.Response); 1399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1431switch (message.Response.Status) 1436using var document = JsonDocument.Parse(message.Response.ContentStream); 1438return Response.FromValue(value, message.Response); 1441throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1494switch (message.Response.Status) 1499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1501return Response.FromValue(value, message.Response); 1504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1532switch (message.Response.Status) 1537using var document = JsonDocument.Parse(message.Response.ContentStream); 1539return Response.FromValue(value, message.Response); 1542throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1590switch (message.Response.Status) 1595using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1597return Response.FromValue(value, message.Response); 1600throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1627switch (message.Response.Status) 1632using var document = JsonDocument.Parse(message.Response.ContentStream); 1634return Response.FromValue(value, message.Response); 1637throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseRestOperations.cs (24)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 218switch (message.Response.Status) 223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 225return Response.FromValue(value, message.Response); 228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 261switch (message.Response.Status) 266using var document = JsonDocument.Parse(message.Response.ContentStream); 268return Response.FromValue(value, message.Response); 271throw _clientDiagnostics.CreateRequestFailedException(message.Response); 326switch (message.Response.Status) 331using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 333return Response.FromValue(value, message.Response); 336throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 368switch (message.Response.Status) 373using var document = JsonDocument.Parse(message.Response.ContentStream); 375return Response.FromValue(value, message.Response); 378throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GremlinResourcesRestOperations.cs (116)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((GremlinDatabaseData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((GremlinDatabaseData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 414return message.Response; 416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519return Response.FromValue((ThroughputSettingsData)null, message.Response); 521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563return Response.FromValue((ThroughputSettingsData)null, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 633return message.Response; 635throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 676return message.Response; 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 737return message.Response; 739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 771switch (message.Response.Status) 775return message.Response; 777throw _clientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 836return message.Response; 838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 874return message.Response; 876throw _clientDiagnostics.CreateRequestFailedException(message.Response); 931switch (message.Response.Status) 936using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 938return Response.FromValue(value, message.Response); 941throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 973switch (message.Response.Status) 978using var document = JsonDocument.Parse(message.Response.ContentStream); 980return Response.FromValue(value, message.Response); 983throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1044switch (message.Response.Status) 1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1051return Response.FromValue(value, message.Response); 1054return Response.FromValue((GremlinGraphData)null, message.Response); 1056throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1093switch (message.Response.Status) 1098using var document = JsonDocument.Parse(message.Response.ContentStream); 1100return Response.FromValue(value, message.Response); 1103return Response.FromValue((GremlinGraphData)null, message.Response); 1105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1175switch (message.Response.Status) 1179return message.Response; 1181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1223switch (message.Response.Status) 1227return message.Response; 1229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1289switch (message.Response.Status) 1293return message.Response; 1295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1332switch (message.Response.Status) 1336return message.Response; 1338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1400switch (message.Response.Status) 1405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1407return Response.FromValue(value, message.Response); 1410return Response.FromValue((ThroughputSettingsData)null, message.Response); 1412throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1449switch (message.Response.Status) 1454using var document = JsonDocument.Parse(message.Response.ContentStream); 1456return Response.FromValue(value, message.Response); 1459return Response.FromValue((ThroughputSettingsData)null, message.Response); 1461throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1532switch (message.Response.Status) 1536return message.Response; 1538throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1580switch (message.Response.Status) 1584return message.Response; 1586throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1648switch (message.Response.Status) 1652return message.Response; 1654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1691switch (message.Response.Status) 1695return message.Response; 1697throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1759switch (message.Response.Status) 1763return message.Response; 1765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1802switch (message.Response.Status) 1806return message.Response; 1808throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MongoDBResourcesRestOperations.cs (116)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((MongoDBDatabaseData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((MongoDBDatabaseData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 414return message.Response; 416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519return Response.FromValue((ThroughputSettingsData)null, message.Response); 521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563return Response.FromValue((ThroughputSettingsData)null, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 633return message.Response; 635throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 676return message.Response; 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 737return message.Response; 739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 771switch (message.Response.Status) 775return message.Response; 777throw _clientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 836return message.Response; 838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 874return message.Response; 876throw _clientDiagnostics.CreateRequestFailedException(message.Response); 931switch (message.Response.Status) 936using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 938return Response.FromValue(value, message.Response); 941throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 973switch (message.Response.Status) 978using var document = JsonDocument.Parse(message.Response.ContentStream); 980return Response.FromValue(value, message.Response); 983throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1044switch (message.Response.Status) 1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1051return Response.FromValue(value, message.Response); 1054return Response.FromValue((MongoDBCollectionData)null, message.Response); 1056throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1093switch (message.Response.Status) 1098using var document = JsonDocument.Parse(message.Response.ContentStream); 1100return Response.FromValue(value, message.Response); 1103return Response.FromValue((MongoDBCollectionData)null, message.Response); 1105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1175switch (message.Response.Status) 1179return message.Response; 1181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1223switch (message.Response.Status) 1227return message.Response; 1229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1289switch (message.Response.Status) 1293return message.Response; 1295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1332switch (message.Response.Status) 1336return message.Response; 1338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1400switch (message.Response.Status) 1405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1407return Response.FromValue(value, message.Response); 1410return Response.FromValue((ThroughputSettingsData)null, message.Response); 1412throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1449switch (message.Response.Status) 1454using var document = JsonDocument.Parse(message.Response.ContentStream); 1456return Response.FromValue(value, message.Response); 1459return Response.FromValue((ThroughputSettingsData)null, message.Response); 1461throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1532switch (message.Response.Status) 1536return message.Response; 1538throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1580switch (message.Response.Status) 1584return message.Response; 1586throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1648switch (message.Response.Status) 1652return message.Response; 1654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1691switch (message.Response.Status) 1695return message.Response; 1697throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1759switch (message.Response.Status) 1763return message.Response; 1765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1802switch (message.Response.Status) 1806return message.Response; 1808throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PartitionKeyRangeIdRegionRestOperations.cs (8)
122switch (message.Response.Status) 127using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 129return Response.FromValue(value, message.Response); 132throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PartitionKeyRangeIdRestOperations.cs (8)
115switch (message.Response.Status) 120using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 122return Response.FromValue(value, message.Response); 125throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PercentileRestOperations.cs (8)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PercentileSourceTargetRestOperations.cs (8)
108switch (message.Response.Status) 113using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 115return Response.FromValue(value, message.Response); 118throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PercentileTargetRestOperations.cs (8)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (30)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 415return message.Response; 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 453return message.Response; 455throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (18)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((PrivateLinkResourceData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((PrivateLinkResourceData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableDatabaseAccountsRestOperations.cs (26)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 157switch (message.Response.Status) 162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 164return Response.FromValue(value, message.Response); 167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((RestorableDatabaseAccountData)null, message.Response); 253throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 285using var document = JsonDocument.Parse(message.Response.ContentStream); 287return Response.FromValue(value, message.Response); 290return Response.FromValue((RestorableDatabaseAccountData)null, message.Response); 292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableMongodbCollectionsRestOperations.cs (8)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableMongodbDatabasesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableMongodbResourcesRestOperations.cs (8)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableSqlContainersRestOperations.cs (8)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 143switch (message.Response.Status) 148using var document = JsonDocument.Parse(message.Response.ContentStream); 150return Response.FromValue(value, message.Response); 153throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableSqlDatabasesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableSqlResourcesRestOperations.cs (8)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SqlResourcesRestOperations.cs (212)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((SqlDatabaseData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((SqlDatabaseData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 414return message.Response; 416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519return Response.FromValue((ThroughputSettingsData)null, message.Response); 521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563return Response.FromValue((ThroughputSettingsData)null, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 633return message.Response; 635throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 676return message.Response; 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 737return message.Response; 739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 771switch (message.Response.Status) 775return message.Response; 777throw _clientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 836return message.Response; 838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 874return message.Response; 876throw _clientDiagnostics.CreateRequestFailedException(message.Response); 931switch (message.Response.Status) 936using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 938return Response.FromValue(value, message.Response); 941throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 973switch (message.Response.Status) 978using var document = JsonDocument.Parse(message.Response.ContentStream); 980return Response.FromValue(value, message.Response); 983throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1044switch (message.Response.Status) 1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1051return Response.FromValue(value, message.Response); 1054return Response.FromValue((SqlContainerData)null, message.Response); 1056throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1093switch (message.Response.Status) 1098using var document = JsonDocument.Parse(message.Response.ContentStream); 1100return Response.FromValue(value, message.Response); 1103return Response.FromValue((SqlContainerData)null, message.Response); 1105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1175switch (message.Response.Status) 1179return message.Response; 1181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1223switch (message.Response.Status) 1227return message.Response; 1229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1289switch (message.Response.Status) 1293return message.Response; 1295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1332switch (message.Response.Status) 1336return message.Response; 1338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1400switch (message.Response.Status) 1405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1407return Response.FromValue(value, message.Response); 1410return Response.FromValue((ThroughputSettingsData)null, message.Response); 1412throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1449switch (message.Response.Status) 1454using var document = JsonDocument.Parse(message.Response.ContentStream); 1456return Response.FromValue(value, message.Response); 1459return Response.FromValue((ThroughputSettingsData)null, message.Response); 1461throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1532switch (message.Response.Status) 1536return message.Response; 1538throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1580switch (message.Response.Status) 1584return message.Response; 1586throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1648switch (message.Response.Status) 1652return message.Response; 1654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1691switch (message.Response.Status) 1695return message.Response; 1697throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1759switch (message.Response.Status) 1763return message.Response; 1765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1802switch (message.Response.Status) 1806return message.Response; 1808throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1870switch (message.Response.Status) 1875using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1877return Response.FromValue(value, message.Response); 1880throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1917switch (message.Response.Status) 1922using var document = JsonDocument.Parse(message.Response.ContentStream); 1924return Response.FromValue(value, message.Response); 1927throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1995switch (message.Response.Status) 2000using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2002return Response.FromValue(value, message.Response); 2005return Response.FromValue((SqlStoredProcedureData)null, message.Response); 2007throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2049switch (message.Response.Status) 2054using var document = JsonDocument.Parse(message.Response.ContentStream); 2056return Response.FromValue(value, message.Response); 2059return Response.FromValue((SqlStoredProcedureData)null, message.Response); 2061throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2138switch (message.Response.Status) 2142return message.Response; 2144throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2191switch (message.Response.Status) 2195return message.Response; 2197throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2264switch (message.Response.Status) 2268return message.Response; 2270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2312switch (message.Response.Status) 2316return message.Response; 2318throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2380switch (message.Response.Status) 2385using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2387return Response.FromValue(value, message.Response); 2390throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2427switch (message.Response.Status) 2432using var document = JsonDocument.Parse(message.Response.ContentStream); 2434return Response.FromValue(value, message.Response); 2437throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2505switch (message.Response.Status) 2510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2512return Response.FromValue(value, message.Response); 2515return Response.FromValue((SqlUserDefinedFunctionData)null, message.Response); 2517throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2559switch (message.Response.Status) 2564using var document = JsonDocument.Parse(message.Response.ContentStream); 2566return Response.FromValue(value, message.Response); 2569return Response.FromValue((SqlUserDefinedFunctionData)null, message.Response); 2571throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2648switch (message.Response.Status) 2652return message.Response; 2654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2701switch (message.Response.Status) 2705return message.Response; 2707throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2774switch (message.Response.Status) 2778return message.Response; 2780throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2822switch (message.Response.Status) 2826return message.Response; 2828throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2890switch (message.Response.Status) 2895using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2897return Response.FromValue(value, message.Response); 2900throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2937switch (message.Response.Status) 2942using var document = JsonDocument.Parse(message.Response.ContentStream); 2944return Response.FromValue(value, message.Response); 2947throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3015switch (message.Response.Status) 3020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3022return Response.FromValue(value, message.Response); 3025return Response.FromValue((SqlTriggerData)null, message.Response); 3027throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3069switch (message.Response.Status) 3074using var document = JsonDocument.Parse(message.Response.ContentStream); 3076return Response.FromValue(value, message.Response); 3079return Response.FromValue((SqlTriggerData)null, message.Response); 3081throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3158switch (message.Response.Status) 3162return message.Response; 3164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3211switch (message.Response.Status) 3215return message.Response; 3217throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3284switch (message.Response.Status) 3288return message.Response; 3290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3332switch (message.Response.Status) 3336return message.Response; 3338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 3409switch (message.Response.Status) 3413return message.Response; 3415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3457switch (message.Response.Status) 3461return message.Response; 3463throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableResourcesRestOperations.cs (58)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((CosmosTableData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((CosmosTableData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 414return message.Response; 416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519return Response.FromValue((ThroughputSettingsData)null, message.Response); 521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563return Response.FromValue((ThroughputSettingsData)null, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 633return message.Response; 635throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 676return message.Response; 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 737return message.Response; 739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 771switch (message.Response.Status) 775return message.Response; 777throw _clientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 836return message.Response; 838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 874return message.Response; 876throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Dns (150)
Generated\DnsResourceReferenceRestOperations.cs (8)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RecordSetsRestOperations.cs (78)
114switch (message.Response.Status) 119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 121return Response.FromValue(value, message.Response); 124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 158switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 165return Response.FromValue(value, message.Response); 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 238switch (message.Response.Status) 244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 246return Response.FromValue(value, message.Response); 249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 284switch (message.Response.Status) 290using var document = JsonDocument.Parse(message.Response.ContentStream); 292return Response.FromValue(value, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 351switch (message.Response.Status) 355return message.Response; 357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw _clientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 649return Response.FromValue(value, message.Response); 652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 676switch (message.Response.Status) 681using var document = JsonDocument.Parse(message.Response.ContentStream); 683return Response.FromValue(value, message.Response); 686throw _clientDiagnostics.CreateRequestFailedException(message.Response); 738switch (message.Response.Status) 743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 745return Response.FromValue(value, message.Response); 748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 772switch (message.Response.Status) 777using var document = JsonDocument.Parse(message.Response.ContentStream); 779return Response.FromValue(value, message.Response); 782throw _clientDiagnostics.CreateRequestFailedException(message.Response); 825switch (message.Response.Status) 830using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 832return Response.FromValue(value, message.Response); 835throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 865switch (message.Response.Status) 870using var document = JsonDocument.Parse(message.Response.ContentStream); 872return Response.FromValue(value, message.Response); 875throw _clientDiagnostics.CreateRequestFailedException(message.Response); 917switch (message.Response.Status) 922using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 924return Response.FromValue(value, message.Response); 927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 956switch (message.Response.Status) 961using var document = JsonDocument.Parse(message.Response.ContentStream); 963return Response.FromValue(value, message.Response); 966throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1008switch (message.Response.Status) 1013using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1015return Response.FromValue(value, message.Response); 1018throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1047switch (message.Response.Status) 1052using var document = JsonDocument.Parse(message.Response.ContentStream); 1054return Response.FromValue(value, message.Response); 1057throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ZonesRestOperations.cs (62)
109switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 149switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211return message.Response; 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 241return message.Response; 243throw _clientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 291return Response.FromValue(value, message.Response); 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 321using var document = JsonDocument.Parse(message.Response.ContentStream); 323return Response.FromValue(value, message.Response); 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 388return Response.FromValue(value, message.Response); 391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424using var document = JsonDocument.Parse(message.Response.ContentStream); 426return Response.FromValue(value, message.Response); 429throw _clientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw _clientDiagnostics.CreateRequestFailedException(message.Response); 538switch (message.Response.Status) 543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 545return Response.FromValue(value, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 559switch (message.Response.Status) 564using var document = JsonDocument.Parse(message.Response.ContentStream); 566return Response.FromValue(value, message.Response); 569throw _clientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 612return Response.FromValue(value, message.Response); 615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 638switch (message.Response.Status) 643using var document = JsonDocument.Parse(message.Response.ContentStream); 645return Response.FromValue(value, message.Response); 648throw _clientDiagnostics.CreateRequestFailedException(message.Response); 679switch (message.Response.Status) 684using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 686return Response.FromValue(value, message.Response); 689throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 707switch (message.Response.Status) 712using var document = JsonDocument.Parse(message.Response.ContentStream); 714return Response.FromValue(value, message.Response); 717throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.ResourceManager.EventHubs (573)
Generated\RestOperations\ClustersRestOperations.cs (58)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response); 223switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 260using var document = JsonDocument.Parse(message.Response.ContentStream); 262return Response.FromValue(value, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 312switch (message.Response.Status) 317using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 319return Response.FromValue(value, message.Response); 322return Response.FromValue((EventHubClusterData)null, message.Response); 324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 356using var document = JsonDocument.Parse(message.Response.ContentStream); 358return Response.FromValue(value, message.Response); 361return Response.FromValue((EventHubClusterData)null, message.Response); 363throw _clientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 418return Response.FromValue(value, message.Response); 421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 453using var document = JsonDocument.Parse(message.Response.ContentStream); 455return Response.FromValue(value, message.Response); 458throw _clientDiagnostics.CreateRequestFailedException(message.Response); 494switch (message.Response.Status) 499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 501return Response.FromValue(value, message.Response); 504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response); 577switch (message.Response.Status) 582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 584return Response.FromValue(value, message.Response); 587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 619using var document = JsonDocument.Parse(message.Response.ContentStream); 621return Response.FromValue(value, message.Response); 624throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConfigurationRestOperations.cs (18)
97switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108return Response.FromValue((ClusterQuotaConfigurationProperties)null, message.Response); 110throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142switch (message.Response.Status) 148using var document = JsonDocument.Parse(message.Response.ContentStream); 150return Response.FromValue(value, message.Response); 153return Response.FromValue((ClusterQuotaConfigurationProperties)null, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConsumerGroupsRestOperations.cs (40)
110switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw _clientDiagnostics.CreateRequestFailedException(message.Response); 233switch (message.Response.Status) 237return message.Response; 239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 276switch (message.Response.Status) 280return message.Response; 282throw _clientDiagnostics.CreateRequestFailedException(message.Response); 343switch (message.Response.Status) 348using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 350return Response.FromValue(value, message.Response); 353return Response.FromValue((ConsumerGroupData)null, message.Response); 355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 392switch (message.Response.Status) 397using var document = JsonDocument.Parse(message.Response.ContentStream); 399return Response.FromValue(value, message.Response); 402return Response.FromValue((ConsumerGroupData)null, message.Response); 404throw _clientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 576switch (message.Response.Status) 581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 583return Response.FromValue(value, message.Response); 586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 625switch (message.Response.Status) 630using var document = JsonDocument.Parse(message.Response.ContentStream); 632return Response.FromValue(value, message.Response); 635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DisasterRecoveriesRestOperations.cs (16)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 109return Response.FromValue(value, message.Response); 112return Response.FromValue((DisasterRecoveryData)null, message.Response); 114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161return Response.FromValue((DisasterRecoveryData)null, message.Response); 163throw _clientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 221return message.Response; 223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 259return message.Response; 261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DisasterRecoveryConfigsRestOperations.cs (80)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 239using var document = JsonDocument.Parse(message.Response.ContentStream); 241return Response.FromValue(value, message.Response); 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 303using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 305return Response.FromValue(value, message.Response); 308return Response.FromValue((DisasterRecoveryData)null, message.Response); 310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 342switch (message.Response.Status) 347using var document = JsonDocument.Parse(message.Response.ContentStream); 349return Response.FromValue(value, message.Response); 352return Response.FromValue((DisasterRecoveryData)null, message.Response); 354throw _clientDiagnostics.CreateRequestFailedException(message.Response); 409switch (message.Response.Status) 412return message.Response; 414throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 446switch (message.Response.Status) 449return message.Response; 451throw _clientDiagnostics.CreateRequestFailedException(message.Response); 506switch (message.Response.Status) 509return message.Response; 511throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 543switch (message.Response.Status) 546return message.Response; 548throw _clientDiagnostics.CreateRequestFailedException(message.Response); 603switch (message.Response.Status) 608using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 610return Response.FromValue(value, message.Response); 613throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 645switch (message.Response.Status) 650using var document = JsonDocument.Parse(message.Response.ContentStream); 652return Response.FromValue(value, message.Response); 655throw _clientDiagnostics.CreateRequestFailedException(message.Response); 716switch (message.Response.Status) 721using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 723return Response.FromValue(value, message.Response); 726return Response.FromValue((AuthorizationRuleData)null, message.Response); 728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 765switch (message.Response.Status) 770using var document = JsonDocument.Parse(message.Response.ContentStream); 772return Response.FromValue(value, message.Response); 775return Response.FromValue((AuthorizationRuleData)null, message.Response); 777throw _clientDiagnostics.CreateRequestFailedException(message.Response); 839switch (message.Response.Status) 844using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 846return Response.FromValue(value, message.Response); 849throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 886switch (message.Response.Status) 891using var document = JsonDocument.Parse(message.Response.ContentStream); 893return Response.FromValue(value, message.Response); 896throw _clientDiagnostics.CreateRequestFailedException(message.Response); 942switch (message.Response.Status) 947using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 949return Response.FromValue(value, message.Response); 952throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 984switch (message.Response.Status) 989using var document = JsonDocument.Parse(message.Response.ContentStream); 991return Response.FromValue(value, message.Response); 994throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1045switch (message.Response.Status) 1050using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1052return Response.FromValue(value, message.Response); 1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1092switch (message.Response.Status) 1097using var document = JsonDocument.Parse(message.Response.ContentStream); 1099return Response.FromValue(value, message.Response); 1102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EventHubClustersRestOperations.cs (18)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201return message.Response; 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240return message.Response; 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294return message.Response; 296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 323switch (message.Response.Status) 328return message.Response; 330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EventHubNamespacesRestOperations.cs (22)
95switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139return message.Response; 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 188switch (message.Response.Status) 193return message.Response; 195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227return message.Response; 229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 285switch (message.Response.Status) 291using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 293return Response.FromValue(value, message.Response); 296return Response.FromValue((EventHubNamespaceData)null, message.Response); 298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330switch (message.Response.Status) 336using var document = JsonDocument.Parse(message.Response.ContentStream); 338return Response.FromValue(value, message.Response); 341return Response.FromValue((EventHubNamespaceData)null, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EventHubsRestOperations.cs (96)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw _clientDiagnostics.CreateRequestFailedException(message.Response); 321switch (message.Response.Status) 325return message.Response; 327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 363return message.Response; 365throw _clientDiagnostics.CreateRequestFailedException(message.Response); 419switch (message.Response.Status) 424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 426return Response.FromValue(value, message.Response); 429return Response.FromValue((EventHubData)null, message.Response); 431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468using var document = JsonDocument.Parse(message.Response.ContentStream); 470return Response.FromValue(value, message.Response); 473return Response.FromValue((EventHubData)null, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 530switch (message.Response.Status) 535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 537return Response.FromValue(value, message.Response); 540throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw _clientDiagnostics.CreateRequestFailedException(message.Response); 652switch (message.Response.Status) 657using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 659return Response.FromValue(value, message.Response); 662throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 704switch (message.Response.Status) 709using var document = JsonDocument.Parse(message.Response.ContentStream); 711return Response.FromValue(value, message.Response); 714throw _clientDiagnostics.CreateRequestFailedException(message.Response); 775switch (message.Response.Status) 780using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 782return Response.FromValue(value, message.Response); 785return Response.FromValue((AuthorizationRuleData)null, message.Response); 787throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 824switch (message.Response.Status) 829using var document = JsonDocument.Parse(message.Response.ContentStream); 831return Response.FromValue(value, message.Response); 834return Response.FromValue((AuthorizationRuleData)null, message.Response); 836throw _clientDiagnostics.CreateRequestFailedException(message.Response); 897switch (message.Response.Status) 901return message.Response; 903throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 940switch (message.Response.Status) 944return message.Response; 946throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1008switch (message.Response.Status) 1013using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1015return Response.FromValue(value, message.Response); 1018throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1055switch (message.Response.Status) 1060using var document = JsonDocument.Parse(message.Response.ContentStream); 1062return Response.FromValue(value, message.Response); 1065throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1136switch (message.Response.Status) 1141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1143return Response.FromValue(value, message.Response); 1146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1188switch (message.Response.Status) 1193using var document = JsonDocument.Parse(message.Response.ContentStream); 1195return Response.FromValue(value, message.Response); 1198throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1246switch (message.Response.Status) 1251using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1253return Response.FromValue(value, message.Response); 1256throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1290switch (message.Response.Status) 1295using var document = JsonDocument.Parse(message.Response.ContentStream); 1297return Response.FromValue(value, message.Response); 1300throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1351switch (message.Response.Status) 1356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1358return Response.FromValue(value, message.Response); 1361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1398switch (message.Response.Status) 1403using var document = JsonDocument.Parse(message.Response.ContentStream); 1405return Response.FromValue(value, message.Response); 1408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NamespacesRestOperations.cs (132)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((EventHubNamespaceData)null, message.Response); 253throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 285using var document = JsonDocument.Parse(message.Response.ContentStream); 287return Response.FromValue(value, message.Response); 290return Response.FromValue((EventHubNamespaceData)null, message.Response); 292throw _clientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 391switch (message.Response.Status) 396using var document = JsonDocument.Parse(message.Response.ContentStream); 398return Response.FromValue(value, message.Response); 401throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459return Response.FromValue((NetworkRuleSetData)null, message.Response); 461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 488switch (message.Response.Status) 493using var document = JsonDocument.Parse(message.Response.ContentStream); 495return Response.FromValue(value, message.Response); 498return Response.FromValue((NetworkRuleSetData)null, message.Response); 500throw _clientDiagnostics.CreateRequestFailedException(message.Response); 548switch (message.Response.Status) 553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 555return Response.FromValue(value, message.Response); 558throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw _clientDiagnostics.CreateRequestFailedException(message.Response); 643switch (message.Response.Status) 648using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 650return Response.FromValue(value, message.Response); 653throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 680switch (message.Response.Status) 685using var document = JsonDocument.Parse(message.Response.ContentStream); 687return Response.FromValue(value, message.Response); 690throw _clientDiagnostics.CreateRequestFailedException(message.Response); 753switch (message.Response.Status) 758using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 760return Response.FromValue(value, message.Response); 763throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 800switch (message.Response.Status) 805using var document = JsonDocument.Parse(message.Response.ContentStream); 807return Response.FromValue(value, message.Response); 810throw _clientDiagnostics.CreateRequestFailedException(message.Response); 864switch (message.Response.Status) 868return message.Response; 870throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 902switch (message.Response.Status) 906return message.Response; 908throw _clientDiagnostics.CreateRequestFailedException(message.Response); 962switch (message.Response.Status) 967using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 969return Response.FromValue(value, message.Response); 972return Response.FromValue((AuthorizationRuleData)null, message.Response); 974throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1006switch (message.Response.Status) 1011using var document = JsonDocument.Parse(message.Response.ContentStream); 1013return Response.FromValue(value, message.Response); 1016return Response.FromValue((AuthorizationRuleData)null, message.Response); 1018throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1073switch (message.Response.Status) 1078using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1080return Response.FromValue(value, message.Response); 1083throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1115switch (message.Response.Status) 1120using var document = JsonDocument.Parse(message.Response.ContentStream); 1122return Response.FromValue(value, message.Response); 1125throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1189switch (message.Response.Status) 1194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1196return Response.FromValue(value, message.Response); 1199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1236switch (message.Response.Status) 1241using var document = JsonDocument.Parse(message.Response.ContentStream); 1243return Response.FromValue(value, message.Response); 1246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1289switch (message.Response.Status) 1294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1296return Response.FromValue(value, message.Response); 1299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1321switch (message.Response.Status) 1326using var document = JsonDocument.Parse(message.Response.ContentStream); 1328return Response.FromValue(value, message.Response); 1331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1367switch (message.Response.Status) 1372using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1374return Response.FromValue(value, message.Response); 1377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1399switch (message.Response.Status) 1404using var document = JsonDocument.Parse(message.Response.ContentStream); 1406return Response.FromValue(value, message.Response); 1409throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1450switch (message.Response.Status) 1455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1457return Response.FromValue(value, message.Response); 1460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1487switch (message.Response.Status) 1492using var document = JsonDocument.Parse(message.Response.ContentStream); 1494return Response.FromValue(value, message.Response); 1497throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1543switch (message.Response.Status) 1548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1550return Response.FromValue(value, message.Response); 1553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1585switch (message.Response.Status) 1590using var document = JsonDocument.Parse(message.Response.ContentStream); 1592return Response.FromValue(value, message.Response); 1595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (40)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 206return Response.FromValue(value, message.Response); 209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 252using var document = JsonDocument.Parse(message.Response.ContentStream); 254return Response.FromValue(value, message.Response); 257throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316return message.Response; 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 418return Response.FromValue(value, message.Response); 421return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 455switch (message.Response.Status) 460using var document = JsonDocument.Parse(message.Response.ContentStream); 462return Response.FromValue(value, message.Response); 465return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 467throw _clientDiagnostics.CreateRequestFailedException(message.Response); 513switch (message.Response.Status) 518using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 520return Response.FromValue(value, message.Response); 523throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SchemaRegistryRestOperations.cs (40)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 216return Response.FromValue(value, message.Response); 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 260using var document = JsonDocument.Parse(message.Response.ContentStream); 262return Response.FromValue(value, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 322return message.Response; 324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 359return message.Response; 361throw _clientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 421return Response.FromValue(value, message.Response); 424return Response.FromValue((SchemaGroupData)null, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 462using var document = JsonDocument.Parse(message.Response.ContentStream); 464return Response.FromValue(value, message.Response); 467return Response.FromValue((SchemaGroupData)null, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 517switch (message.Response.Status) 522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 524return Response.FromValue(value, message.Response); 527throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 561switch (message.Response.Status) 566using var document = JsonDocument.Parse(message.Response.ContentStream); 568return Response.FromValue(value, message.Response); 571throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Insights (520)
Generated\ActionGroupsRestOperations.cs (52)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 265switch (message.Response.Status) 269return message.Response; 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 297return message.Response; 299throw _clientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396throw _clientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 447using var document = JsonDocument.Parse(message.Response.ContentStream); 449return Response.FromValue(value, message.Response); 452throw _clientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 494return Response.FromValue(value, message.Response); 497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response); 575switch (message.Response.Status) 579return message.Response; 581throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 612return message.Response; 614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ActivityLogAlertsRestOperations.cs (46)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 265switch (message.Response.Status) 269return message.Response; 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 297return message.Response; 299throw _clientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396throw _clientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 447using var document = JsonDocument.Parse(message.Response.ContentStream); 449return Response.FromValue(value, message.Response); 452throw _clientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 494return Response.FromValue(value, message.Response); 497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ActivityLogsRestOperations.cs (16)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 155switch (message.Response.Status) 160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 162return Response.FromValue(value, message.Response); 165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 188switch (message.Response.Status) 193using var document = JsonDocument.Parse(message.Response.ContentStream); 195return Response.FromValue(value, message.Response); 198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AlertRuleIncidentsRestOperations.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 179switch (message.Response.Status) 184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 186return Response.FromValue(value, message.Response); 189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AlertRulesRestOperations.cs (46)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 185return message.Response; 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 213return message.Response; 215throw _clientDiagnostics.CreateRequestFailedException(message.Response); 256switch (message.Response.Status) 261using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 263return Response.FromValue(value, message.Response); 266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return Response.FromValue(value, message.Response); 298throw _clientDiagnostics.CreateRequestFailedException(message.Response); 348switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 392using var document = JsonDocument.Parse(message.Response.ContentStream); 394return Response.FromValue(value, message.Response); 397throw _clientDiagnostics.CreateRequestFailedException(message.Response); 432switch (message.Response.Status) 437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 439return Response.FromValue(value, message.Response); 442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 464using var document = JsonDocument.Parse(message.Response.ContentStream); 466return Response.FromValue(value, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 495switch (message.Response.Status) 500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 502return Response.FromValue(value, message.Response); 505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AutoscaleSettingsRestOperations.cs (62)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104switch (message.Response.Status) 109using var document = JsonDocument.Parse(message.Response.ContentStream); 111return Response.FromValue(value, message.Response); 114throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return Response.FromValue(value, message.Response); 175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 202switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw _clientDiagnostics.CreateRequestFailedException(message.Response); 254switch (message.Response.Status) 258return message.Response; 260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 286return message.Response; 288throw _clientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 336return Response.FromValue(value, message.Response); 339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 361switch (message.Response.Status) 366using var document = JsonDocument.Parse(message.Response.ContentStream); 368return Response.FromValue(value, message.Response); 371throw _clientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 428return Response.FromValue(value, message.Response); 431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 458switch (message.Response.Status) 463using var document = JsonDocument.Parse(message.Response.ContentStream); 465return Response.FromValue(value, message.Response); 468throw _clientDiagnostics.CreateRequestFailedException(message.Response); 494switch (message.Response.Status) 499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 501return Response.FromValue(value, message.Response); 504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 591switch (message.Response.Status) 596using var document = JsonDocument.Parse(message.Response.ContentStream); 598return Response.FromValue(value, message.Response); 601throw _clientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BaselinesRestOperations.cs (8)
107switch (message.Response.Status) 112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 114return Response.FromValue(value, message.Response); 117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DiagnosticSettingsCategoryRestOperations.cs (16)
73switch (message.Response.Status) 78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105switch (message.Response.Status) 110using var document = JsonDocument.Parse(message.Response.ContentStream); 112return Response.FromValue(value, message.Response); 115throw _clientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return Response.FromValue(value, message.Response); 158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DiagnosticSettingsRestOperations.cs (30)
73switch (message.Response.Status) 78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105switch (message.Response.Status) 110using var document = JsonDocument.Parse(message.Response.ContentStream); 112return Response.FromValue(value, message.Response); 115throw _clientDiagnostics.CreateRequestFailedException(message.Response); 163switch (message.Response.Status) 168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 170return Response.FromValue(value, message.Response); 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 200switch (message.Response.Status) 205using var document = JsonDocument.Parse(message.Response.ContentStream); 207return Response.FromValue(value, message.Response); 210throw _clientDiagnostics.CreateRequestFailedException(message.Response); 249switch (message.Response.Status) 253return message.Response; 255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 277switch (message.Response.Status) 281return message.Response; 283throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 323return Response.FromValue(value, message.Response); 326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343switch (message.Response.Status) 348using var document = JsonDocument.Parse(message.Response.ContentStream); 350return Response.FromValue(value, message.Response); 353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventCategoriesRestOperations.cs (8)
58switch (message.Response.Status) 63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 65return Response.FromValue(value, message.Response); 68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 78switch (message.Response.Status) 83using var document = JsonDocument.Parse(message.Response.ContentStream); 85return Response.FromValue(value, message.Response); 88throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LogProfilesRestOperations.cs (38)
75switch (message.Response.Status) 78return message.Response; 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 100return message.Response; 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 136switch (message.Response.Status) 141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 143return Response.FromValue(value, message.Response); 146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163switch (message.Response.Status) 168using var document = JsonDocument.Parse(message.Response.ContentStream); 170return Response.FromValue(value, message.Response); 173throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 255return Response.FromValue(value, message.Response); 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 308return Response.FromValue(value, message.Response); 311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response); 369switch (message.Response.Status) 374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 376return Response.FromValue(value, message.Response); 379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 389switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricAlertsRestOperations.cs (46)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 88switch (message.Response.Status) 93using var document = JsonDocument.Parse(message.Response.ContentStream); 95return Response.FromValue(value, message.Response); 98throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 140return Response.FromValue(value, message.Response); 143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170throw _clientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 218return Response.FromValue(value, message.Response); 221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248using var document = JsonDocument.Parse(message.Response.ContentStream); 250return Response.FromValue(value, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 303switch (message.Response.Status) 308using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 310return Response.FromValue(value, message.Response); 313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340switch (message.Response.Status) 345using var document = JsonDocument.Parse(message.Response.ContentStream); 347return Response.FromValue(value, message.Response); 350throw _clientDiagnostics.CreateRequestFailedException(message.Response); 400switch (message.Response.Status) 405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 407return Response.FromValue(value, message.Response); 410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 437switch (message.Response.Status) 442using var document = JsonDocument.Parse(message.Response.ContentStream); 444return Response.FromValue(value, message.Response); 447throw _clientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 491return message.Response; 493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 519return message.Response; 521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricAlertsStatusRestOperations.cs (16)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 116switch (message.Response.Status) 121using var document = JsonDocument.Parse(message.Response.ContentStream); 123return Response.FromValue(value, message.Response); 126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 174switch (message.Response.Status) 179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 181return Response.FromValue(value, message.Response); 184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricBaselineRestOperations.cs (16)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140using var document = JsonDocument.Parse(message.Response.ContentStream); 142return Response.FromValue(value, message.Response); 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 224using var document = JsonDocument.Parse(message.Response.ContentStream); 226return Response.FromValue(value, message.Response); 229throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricDefinitionsRestOperations.cs (8)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 105using var document = JsonDocument.Parse(message.Response.ContentStream); 107return Response.FromValue(value, message.Response); 110throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricNamespacesRestOperations.cs (8)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 105using var document = JsonDocument.Parse(message.Response.ContentStream); 107return Response.FromValue(value, message.Response); 110throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricsRestOperations.cs (8)
120switch (message.Response.Status) 125using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 127return Response.FromValue(value, message.Response); 130throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 169using var document = JsonDocument.Parse(message.Response.ContentStream); 171return Response.FromValue(value, message.Response); 174throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations.cs (8)
58switch (message.Response.Status) 63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 65return Response.FromValue(value, message.Response); 68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 78switch (message.Response.Status) 83using var document = JsonDocument.Parse(message.Response.ContentStream); 85return Response.FromValue(value, message.Response); 88throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ScheduledQueryRulesRestOperations.cs (46)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 274switch (message.Response.Status) 279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 281return Response.FromValue(value, message.Response); 284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 316using var document = JsonDocument.Parse(message.Response.ContentStream); 318return Response.FromValue(value, message.Response); 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 366return message.Response; 368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 394return message.Response; 396throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 453using var document = JsonDocument.Parse(message.Response.ContentStream); 455return Response.FromValue(value, message.Response); 458throw _clientDiagnostics.CreateRequestFailedException(message.Response); 498switch (message.Response.Status) 503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 505return Response.FromValue(value, message.Response); 508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TenantActivityLogsRestOperations.cs (16)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 90switch (message.Response.Status) 95using var document = JsonDocument.Parse(message.Response.ContentStream); 97return Response.FromValue(value, message.Response); 100throw _clientDiagnostics.CreateRequestFailedException(message.Response); 132switch (message.Response.Status) 137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 139return Response.FromValue(value, message.Response); 142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 166using var document = JsonDocument.Parse(message.Response.ContentStream); 168return Response.FromValue(value, message.Response); 171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VMInsightsRestOperations.cs (8)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.ResourceManager.KeyVault (303)
Generated\RestOperations\ManagedHsmsRestOperations.cs (92)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 321switch (message.Response.Status) 326return message.Response; 328throw _clientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 387return Response.FromValue((ManagedHsmData)null, message.Response); 389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 416switch (message.Response.Status) 421using var document = JsonDocument.Parse(message.Response.ContentStream); 423return Response.FromValue(value, message.Response); 428return Response.FromValue((ManagedHsmData)null, message.Response); 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw _clientDiagnostics.CreateRequestFailedException(message.Response); 558switch (message.Response.Status) 563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 565return Response.FromValue(value, message.Response); 568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw _clientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 657switch (message.Response.Status) 662using var document = JsonDocument.Parse(message.Response.ContentStream); 664return Response.FromValue(value, message.Response); 667throw _clientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 719using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 721return Response.FromValue(value, message.Response); 724return Response.FromValue((DeletedManagedHsmData)null, message.Response); 726throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 753switch (message.Response.Status) 758using var document = JsonDocument.Parse(message.Response.ContentStream); 760return Response.FromValue(value, message.Response); 763return Response.FromValue((DeletedManagedHsmData)null, message.Response); 765throw _clientDiagnostics.CreateRequestFailedException(message.Response); 813switch (message.Response.Status) 816return message.Response; 818throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 845switch (message.Response.Status) 848return message.Response; 850throw _clientDiagnostics.CreateRequestFailedException(message.Response); 892switch (message.Response.Status) 897using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 899return Response.FromValue(value, message.Response); 902throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 930switch (message.Response.Status) 935using var document = JsonDocument.Parse(message.Response.ContentStream); 937return Response.FromValue(value, message.Response); 940throw _clientDiagnostics.CreateRequestFailedException(message.Response); 977switch (message.Response.Status) 982using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 984return Response.FromValue(value, message.Response); 987throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1010switch (message.Response.Status) 1015using var document = JsonDocument.Parse(message.Response.ContentStream); 1017return Response.FromValue(value, message.Response); 1020throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1056switch (message.Response.Status) 1061using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1063return Response.FromValue(value, message.Response); 1066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1088switch (message.Response.Status) 1093using var document = JsonDocument.Parse(message.Response.ContentStream); 1095return Response.FromValue(value, message.Response); 1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MhsmPrivateEndpointConnectionsRestOperations.cs (40)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((MhsmPrivateEndpointConnectionData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((MhsmPrivateEndpointConnectionData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360using var document = JsonDocument.Parse(message.Response.ContentStream); 362return Response.FromValue(value, message.Response); 365throw _clientDiagnostics.CreateRequestFailedException(message.Response); 419switch (message.Response.Status) 424return message.Response; 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 458switch (message.Response.Status) 463return message.Response; 465throw _clientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MhsmPrivateLinkResourcesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (40)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 105return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 150return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 152throw _clientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 222return Response.FromValue(value, message.Response); 225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 262switch (message.Response.Status) 267using var document = JsonDocument.Parse(message.Response.ContentStream); 269return Response.FromValue(value, message.Response); 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 326switch (message.Response.Status) 331return message.Response; 333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 370return message.Response; 372throw _clientDiagnostics.CreateRequestFailedException(message.Response); 420switch (message.Response.Status) 425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 427return Response.FromValue(value, message.Response); 430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 462using var document = JsonDocument.Parse(message.Response.ContentStream); 464return Response.FromValue(value, message.Response); 467throw _clientDiagnostics.CreateRequestFailedException(message.Response); 513switch (message.Response.Status) 518using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 520return Response.FromValue(value, message.Response); 523throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VaultsRestOperations.cs (110)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 297switch (message.Response.Status) 301return message.Response; 303throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330switch (message.Response.Status) 334return message.Response; 336throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393return Response.FromValue((VaultData)null, message.Response); 395throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 427using var document = JsonDocument.Parse(message.Response.ContentStream); 429return Response.FromValue(value, message.Response); 432return Response.FromValue((VaultData)null, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 493switch (message.Response.Status) 499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 501return Response.FromValue(value, message.Response); 504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 537switch (message.Response.Status) 543using var document = JsonDocument.Parse(message.Response.ContentStream); 545return Response.FromValue(value, message.Response); 548throw _clientDiagnostics.CreateRequestFailedException(message.Response); 594switch (message.Response.Status) 599using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 601return Response.FromValue(value, message.Response); 604throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 627switch (message.Response.Status) 632using var document = JsonDocument.Parse(message.Response.ContentStream); 634return Response.FromValue(value, message.Response); 637throw _clientDiagnostics.CreateRequestFailedException(message.Response); 676switch (message.Response.Status) 681using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 683return Response.FromValue(value, message.Response); 686throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 704switch (message.Response.Status) 709using var document = JsonDocument.Parse(message.Response.ContentStream); 711return Response.FromValue(value, message.Response); 714throw _clientDiagnostics.CreateRequestFailedException(message.Response); 748switch (message.Response.Status) 753using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 755return Response.FromValue(value, message.Response); 758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 775switch (message.Response.Status) 780using var document = JsonDocument.Parse(message.Response.ContentStream); 782return Response.FromValue(value, message.Response); 785throw _clientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 837using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 839return Response.FromValue(value, message.Response); 842return Response.FromValue((DeletedVaultData)null, message.Response); 844throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 871switch (message.Response.Status) 876using var document = JsonDocument.Parse(message.Response.ContentStream); 878return Response.FromValue(value, message.Response); 881return Response.FromValue((DeletedVaultData)null, message.Response); 883throw _clientDiagnostics.CreateRequestFailedException(message.Response); 931switch (message.Response.Status) 935return message.Response; 937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 964switch (message.Response.Status) 968return message.Response; 970throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1013switch (message.Response.Status) 1018using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1020return Response.FromValue(value, message.Response); 1023throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1045switch (message.Response.Status) 1050using var document = JsonDocument.Parse(message.Response.ContentStream); 1052return Response.FromValue(value, message.Response); 1055throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1097switch (message.Response.Status) 1102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1104return Response.FromValue(value, message.Response); 1107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1135switch (message.Response.Status) 1140using var document = JsonDocument.Parse(message.Response.ContentStream); 1142return Response.FromValue(value, message.Response); 1145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1182switch (message.Response.Status) 1187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1189return Response.FromValue(value, message.Response); 1192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1215switch (message.Response.Status) 1220using var document = JsonDocument.Parse(message.Response.ContentStream); 1222return Response.FromValue(value, message.Response); 1225throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1261switch (message.Response.Status) 1266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1268return Response.FromValue(value, message.Response); 1271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1293switch (message.Response.Status) 1298using var document = JsonDocument.Parse(message.Response.ContentStream); 1300return Response.FromValue(value, message.Response); 1303throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.KeyVault.Tests (546)
Rbac\Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 222return message.Response; 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 244return message.Response; 246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 280switch (message.Response.Status) 285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 287return Response.FromValue(value, message.Response); 290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 307switch (message.Response.Status) 312using var document = JsonDocument.Parse(message.Response.ContentStream); 314return Response.FromValue(value, message.Response); 317throw _clientDiagnostics.CreateRequestFailedException(message.Response); 360switch (message.Response.Status) 363return message.Response; 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 511return message.Response; 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 535switch (message.Response.Status) 538return message.Response; 540throw _clientDiagnostics.CreateRequestFailedException(message.Response); 581switch (message.Response.Status) 584return message.Response; 586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 611return message.Response; 613throw _clientDiagnostics.CreateRequestFailedException(message.Response); 648switch (message.Response.Status) 653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 655return Response.FromValue(value, message.Response); 658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 675switch (message.Response.Status) 680using var document = JsonDocument.Parse(message.Response.ContentStream); 682return Response.FromValue(value, message.Response); 685throw _clientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 732return message.Response; 734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 759return message.Response; 761throw _clientDiagnostics.CreateRequestFailedException(message.Response); 796switch (message.Response.Status) 801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 803return Response.FromValue(value, message.Response); 806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 823switch (message.Response.Status) 828using var document = JsonDocument.Parse(message.Response.ContentStream); 830return Response.FromValue(value, message.Response); 833throw _clientDiagnostics.CreateRequestFailedException(message.Response); 877switch (message.Response.Status) 880return message.Response; 882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 904switch (message.Response.Status) 907return message.Response; 909throw _clientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 951return Response.FromValue(value, message.Response); 954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 971switch (message.Response.Status) 976using var document = JsonDocument.Parse(message.Response.ContentStream); 978return Response.FromValue(value, message.Response); 981throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1015switch (message.Response.Status) 1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1022return Response.FromValue(value, message.Response); 1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1042switch (message.Response.Status) 1047using var document = JsonDocument.Parse(message.Response.ContentStream); 1049return Response.FromValue(value, message.Response); 1052throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1087switch (message.Response.Status) 1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1094return Response.FromValue(value, message.Response); 1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1119switch (message.Response.Status) 1124using var document = JsonDocument.Parse(message.Response.ContentStream); 1126return Response.FromValue(value, message.Response); 1129throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1159switch (message.Response.Status) 1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1166return Response.FromValue(value, message.Response); 1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1186switch (message.Response.Status) 1191using var document = JsonDocument.Parse(message.Response.ContentStream); 1193return Response.FromValue(value, message.Response); 1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw _clientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 285return Response.FromValue(value, message.Response); 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310using var document = JsonDocument.Parse(message.Response.ContentStream); 312return Response.FromValue(value, message.Response); 315throw _clientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 352return Response.FromValue(value, message.Response); 355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return Response.FromValue(value, message.Response); 382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\DomainsRestOperations.cs (16)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 167return message.Response; 169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 194return message.Response; 196throw _clientDiagnostics.CreateRequestFailedException(message.Response); 240switch (message.Response.Status) 243return message.Response; 245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 270return message.Response; 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 309switch (message.Response.Status) 314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 316return Response.FromValue(value, message.Response); 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 384return Response.FromValue(value, message.Response); 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 398switch (message.Response.Status) 403using var document = JsonDocument.Parse(message.Response.ContentStream); 405return Response.FromValue(value, message.Response); 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 475using var document = JsonDocument.Parse(message.Response.ContentStream); 477return Response.FromValue(value, message.Response); 480throw _clientDiagnostics.CreateRequestFailedException(message.Response); 514switch (message.Response.Status) 519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 521return Response.FromValue(value, message.Response); 524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 541switch (message.Response.Status) 546using var document = JsonDocument.Parse(message.Response.ContentStream); 548return Response.FromValue(value, message.Response); 551throw _clientDiagnostics.CreateRequestFailedException(message.Response); 585switch (message.Response.Status) 588return message.Response; 590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 663return Response.FromValue(value, message.Response); 666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 688switch (message.Response.Status) 693using var document = JsonDocument.Parse(message.Response.ContentStream); 695return Response.FromValue(value, message.Response); 698throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw _clientDiagnostics.CreateRequestFailedException(message.Response); 814switch (message.Response.Status) 817return message.Response; 819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 841switch (message.Response.Status) 844return message.Response; 846throw _clientDiagnostics.CreateRequestFailedException(message.Response); 887switch (message.Response.Status) 890return message.Response; 892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 914switch (message.Response.Status) 917return message.Response; 919throw _clientDiagnostics.CreateRequestFailedException(message.Response); 953switch (message.Response.Status) 958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 960return Response.FromValue(value, message.Response); 963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 980switch (message.Response.Status) 985using var document = JsonDocument.Parse(message.Response.ContentStream); 987return Response.FromValue(value, message.Response); 990throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1024switch (message.Response.Status) 1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1031return Response.FromValue(value, message.Response); 1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1056using var document = JsonDocument.Parse(message.Response.ContentStream); 1058return Response.FromValue(value, message.Response); 1061throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1096switch (message.Response.Status) 1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1103return Response.FromValue(value, message.Response); 1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1128switch (message.Response.Status) 1133using var document = JsonDocument.Parse(message.Response.ContentStream); 1135return Response.FromValue(value, message.Response); 1138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1168switch (message.Response.Status) 1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1175return Response.FromValue(value, message.Response); 1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1195switch (message.Response.Status) 1200using var document = JsonDocument.Parse(message.Response.ContentStream); 1202return Response.FromValue(value, message.Response); 1205throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1235switch (message.Response.Status) 1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1242return Response.FromValue(value, message.Response); 1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1262switch (message.Response.Status) 1267using var document = JsonDocument.Parse(message.Response.ContentStream); 1269return Response.FromValue(value, message.Response); 1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 213return message.Response; 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 235return message.Response; 237throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return Response.FromValue(value, message.Response); 281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw _clientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 370using var document = JsonDocument.Parse(message.Response.ContentStream); 372return Response.FromValue(value, message.Response); 375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 157switch (message.Response.Status) 162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 164return Response.FromValue(value, message.Response); 167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 231return Response.FromValue(value, message.Response); 234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228switch (message.Response.Status) 231return message.Response; 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 297return message.Response; 299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 319return message.Response; 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 387using var document = JsonDocument.Parse(message.Response.ContentStream); 389return Response.FromValue(value, message.Response); 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 499switch (message.Response.Status) 504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 506return Response.FromValue(value, message.Response); 509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response); 580switch (message.Response.Status) 583return message.Response; 585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 647switch (message.Response.Status) 652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 654return Response.FromValue(value, message.Response); 657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw _clientDiagnostics.CreateRequestFailedException(message.Response); 728switch (message.Response.Status) 731return message.Response; 733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755switch (message.Response.Status) 758return message.Response; 760throw _clientDiagnostics.CreateRequestFailedException(message.Response); 794switch (message.Response.Status) 799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 801return Response.FromValue(value, message.Response); 804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 821switch (message.Response.Status) 826using var document = JsonDocument.Parse(message.Response.ContentStream); 828return Response.FromValue(value, message.Response); 831throw _clientDiagnostics.CreateRequestFailedException(message.Response); 866switch (message.Response.Status) 871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 873return Response.FromValue(value, message.Response); 876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 898switch (message.Response.Status) 903using var document = JsonDocument.Parse(message.Response.ContentStream); 905return Response.FromValue(value, message.Response); 908throw _clientDiagnostics.CreateRequestFailedException(message.Response); 938switch (message.Response.Status) 943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 945return Response.FromValue(value, message.Response); 948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 965switch (message.Response.Status) 970using var document = JsonDocument.Parse(message.Response.ContentStream); 972return Response.FromValue(value, message.Response); 975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 138return Response.FromValue(value, message.Response); 141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 269return Response.FromValue(value, message.Response); 272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 329return message.Response; 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 368return message.Response; 370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 443return Response.FromValue(value, message.Response); 446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 468switch (message.Response.Status) 473using var document = JsonDocument.Parse(message.Response.ContentStream); 475return Response.FromValue(value, message.Response); 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 512switch (message.Response.Status) 517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 519return Response.FromValue(value, message.Response); 522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 539switch (message.Response.Status) 544using var document = JsonDocument.Parse(message.Response.ContentStream); 546return Response.FromValue(value, message.Response); 549throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 586return Response.FromValue(value, message.Response); 589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.MachineLearningServices (850)
Generated\AzureMachineLearningWorkspacesRestOperations.cs (16)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 142return Response.FromValue(value, message.Response); 145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CodeContainersRestOperations.cs (38)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CodeVersionsRestOperations.cs (38)
112switch (message.Response.Status) 118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 120return Response.FromValue(value, message.Response); 123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 156switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw _clientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274throw _clientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 333return message.Response; 335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 371return message.Response; 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 521switch (message.Response.Status) 526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 528return Response.FromValue(value, message.Response); 531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataContainersRestOperations.cs (38)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatastoresRestOperations.cs (46)
127switch (message.Response.Status) 132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 134return Response.FromValue(value, message.Response); 137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 228return message.Response; 230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 261return message.Response; 263throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 318return Response.FromValue(value, message.Response); 321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 348switch (message.Response.Status) 353using var document = JsonDocument.Parse(message.Response.ContentStream); 355return Response.FromValue(value, message.Response); 358throw _clientDiagnostics.CreateRequestFailedException(message.Response); 415switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 458switch (message.Response.Status) 464using var document = JsonDocument.Parse(message.Response.ContentStream); 466return Response.FromValue(value, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 518switch (message.Response.Status) 523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 525return Response.FromValue(value, message.Response); 528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 656switch (message.Response.Status) 661using var document = JsonDocument.Parse(message.Response.ContentStream); 663return Response.FromValue(value, message.Response); 666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataVersionsRestOperations.cs (38)
112switch (message.Response.Status) 118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 120return Response.FromValue(value, message.Response); 123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 156switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw _clientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274throw _clientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 333return message.Response; 335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 371return message.Response; 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 521switch (message.Response.Status) 526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 528return Response.FromValue(value, message.Response); 531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentContainersRestOperations.cs (38)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentSpecificationVersionsRestOperations.cs (38)
111switch (message.Response.Status) 117using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 119return Response.FromValue(value, message.Response); 122throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 160using var document = JsonDocument.Parse(message.Response.ContentStream); 162return Response.FromValue(value, message.Response); 165throw _clientDiagnostics.CreateRequestFailedException(message.Response); 220switch (message.Response.Status) 225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 227return Response.FromValue(value, message.Response); 230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 262switch (message.Response.Status) 267using var document = JsonDocument.Parse(message.Response.ContentStream); 269return Response.FromValue(value, message.Response); 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 331return message.Response; 333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 369return message.Response; 371throw _clientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 473switch (message.Response.Status) 478using var document = JsonDocument.Parse(message.Response.ContentStream); 480return Response.FromValue(value, message.Response); 483throw _clientDiagnostics.CreateRequestFailedException(message.Response); 530switch (message.Response.Status) 535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 537return Response.FromValue(value, message.Response); 540throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574switch (message.Response.Status) 579using var document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestOperations.cs (50)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 303return message.Response; 305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 337return message.Response; 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 386switch (message.Response.Status) 391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 393return Response.FromValue(value, message.Response); 396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424using var document = JsonDocument.Parse(message.Response.ContentStream); 426return Response.FromValue(value, message.Response); 429throw _clientDiagnostics.CreateRequestFailedException(message.Response); 478switch (message.Response.Status) 481return message.Response; 483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 513return message.Response; 515throw _clientDiagnostics.CreateRequestFailedException(message.Response); 570switch (message.Response.Status) 574return message.Response; 576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 612return message.Response; 614throw _clientDiagnostics.CreateRequestFailedException(message.Response); 655switch (message.Response.Status) 660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 662return Response.FromValue(value, message.Response); 665throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 693switch (message.Response.Status) 698using var document = JsonDocument.Parse(message.Response.ContentStream); 700return Response.FromValue(value, message.Response); 703throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LabelingJobsRestOperations.cs (64)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 220return Response.FromValue(value, message.Response); 223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 257using var document = JsonDocument.Parse(message.Response.ContentStream); 259return Response.FromValue(value, message.Response); 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343switch (message.Response.Status) 347return message.Response; 349throw _clientDiagnostics.CreateRequestFailedException(message.Response); 401switch (message.Response.Status) 406using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 408return Response.FromValue(value, message.Response); 411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435switch (message.Response.Status) 440using var document = JsonDocument.Parse(message.Response.ContentStream); 442return Response.FromValue(value, message.Response); 445throw _clientDiagnostics.CreateRequestFailedException(message.Response); 494switch (message.Response.Status) 497return message.Response; 499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 529return message.Response; 531throw _clientDiagnostics.CreateRequestFailedException(message.Response); 580switch (message.Response.Status) 583return message.Response; 585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 615return message.Response; 617throw _clientDiagnostics.CreateRequestFailedException(message.Response); 674switch (message.Response.Status) 677return message.Response; 679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 707switch (message.Response.Status) 710return message.Response; 712throw _clientDiagnostics.CreateRequestFailedException(message.Response); 763switch (message.Response.Status) 768using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 770return Response.FromValue(value, message.Response); 773throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 801switch (message.Response.Status) 806using var document = JsonDocument.Parse(message.Response.ContentStream); 808return Response.FromValue(value, message.Response); 811throw _clientDiagnostics.CreateRequestFailedException(message.Response); 853switch (message.Response.Status) 858using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 860return Response.FromValue(value, message.Response); 863throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 892switch (message.Response.Status) 897using var document = JsonDocument.Parse(message.Response.ContentStream); 899return Response.FromValue(value, message.Response); 902throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServicesRestOperations.cs (30)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 130return Response.FromValue(value, message.Response); 133throw _clientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 197return Response.FromValue(value, message.Response); 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 237using var document = JsonDocument.Parse(message.Response.ContentStream); 239return Response.FromValue(value, message.Response); 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 389return message.Response; 391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 418switch (message.Response.Status) 422return message.Response; 424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningComputeRestOperations.cs (80)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 134using var document = JsonDocument.Parse(message.Response.ContentStream); 136return Response.FromValue(value, message.Response); 139throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 224switch (message.Response.Status) 229using var document = JsonDocument.Parse(message.Response.ContentStream); 231return Response.FromValue(value, message.Response); 234throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response); 292switch (message.Response.Status) 296return ResponseWithHeaders.FromValue(headers, message.Response); 298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response); 331switch (message.Response.Status) 335return ResponseWithHeaders.FromValue(headers, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 397return message.Response; 399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 434return message.Response; 436throw _clientDiagnostics.CreateRequestFailedException(message.Response); 486var headers = new MachineLearningComputeDeleteHeaders(message.Response); 487switch (message.Response.Status) 491return ResponseWithHeaders.FromValue(headers, message.Response); 493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 521var headers = new MachineLearningComputeDeleteHeaders(message.Response); 522switch (message.Response.Status) 526return ResponseWithHeaders.FromValue(headers, message.Response); 528throw _clientDiagnostics.CreateRequestFailedException(message.Response); 577switch (message.Response.Status) 582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 584return Response.FromValue(value, message.Response); 587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 619using var document = JsonDocument.Parse(message.Response.ContentStream); 621return Response.FromValue(value, message.Response); 624throw _clientDiagnostics.CreateRequestFailedException(message.Response); 673switch (message.Response.Status) 678using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 680return Response.FromValue(value, message.Response); 683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 710switch (message.Response.Status) 715using var document = JsonDocument.Parse(message.Response.ContentStream); 717return Response.FromValue(value, message.Response); 720throw _clientDiagnostics.CreateRequestFailedException(message.Response); 769switch (message.Response.Status) 772return message.Response; 774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 801switch (message.Response.Status) 804return message.Response; 806throw _clientDiagnostics.CreateRequestFailedException(message.Response); 855switch (message.Response.Status) 858return message.Response; 860throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 887switch (message.Response.Status) 890return message.Response; 892throw _clientDiagnostics.CreateRequestFailedException(message.Response); 941switch (message.Response.Status) 944return message.Response; 946throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 973switch (message.Response.Status) 976return message.Response; 978throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1019switch (message.Response.Status) 1024using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1026return Response.FromValue(value, message.Response); 1029throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1057switch (message.Response.Status) 1062using var document = JsonDocument.Parse(message.Response.ContentStream); 1064return Response.FromValue(value, message.Response); 1067throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningServiceRestOperations.cs (38)
136switch (message.Response.Status) 141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 143return Response.FromValue(value, message.Response); 146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 177switch (message.Response.Status) 182using var document = JsonDocument.Parse(message.Response.ContentStream); 184return Response.FromValue(value, message.Response); 187throw _clientDiagnostics.CreateRequestFailedException(message.Response); 240switch (message.Response.Status) 245using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 247return Response.FromValue(value, message.Response); 250throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278switch (message.Response.Status) 283using var document = JsonDocument.Parse(message.Response.ContentStream); 285return Response.FromValue(value, message.Response); 288throw _clientDiagnostics.CreateRequestFailedException(message.Response); 336switch (message.Response.Status) 340return message.Response; 342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369switch (message.Response.Status) 373return message.Response; 375throw _clientDiagnostics.CreateRequestFailedException(message.Response); 432var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response); 433switch (message.Response.Status) 437return ResponseWithHeaders.FromValue(headers, message.Response); 439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response); 472switch (message.Response.Status) 476return ResponseWithHeaders.FromValue(headers, message.Response); 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 573switch (message.Response.Status) 578using var document = JsonDocument.Parse(message.Response.ContentStream); 580return Response.FromValue(value, message.Response); 583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelContainersRestOperations.cs (38)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140using var document = JsonDocument.Parse(message.Response.ContentStream); 142return Response.FromValue(value, message.Response); 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 304using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 306return Response.FromValue(value, message.Response); 309throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 398return message.Response; 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 431return message.Response; 433throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelVersionsRestOperations.cs (38)
143switch (message.Response.Status) 148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 150return Response.FromValue(value, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 189switch (message.Response.Status) 194using var document = JsonDocument.Parse(message.Response.ContentStream); 196return Response.FromValue(value, message.Response); 199throw _clientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 268using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 270return Response.FromValue(value, message.Response); 273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 306switch (message.Response.Status) 312using var document = JsonDocument.Parse(message.Response.ContentStream); 314return Response.FromValue(value, message.Response); 317throw _clientDiagnostics.CreateRequestFailedException(message.Response); 372switch (message.Response.Status) 377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 379return Response.FromValue(value, message.Response); 382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 414switch (message.Response.Status) 419using var document = JsonDocument.Parse(message.Response.ContentStream); 421return Response.FromValue(value, message.Response); 424throw _clientDiagnostics.CreateRequestFailedException(message.Response); 479switch (message.Response.Status) 483return message.Response; 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 517switch (message.Response.Status) 521return message.Response; 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 577switch (message.Response.Status) 582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 584return Response.FromValue(value, message.Response); 587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 628switch (message.Response.Status) 633using var document = JsonDocument.Parse(message.Response.ContentStream); 635return Response.FromValue(value, message.Response); 638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebooksRestOperations.cs (14)
90switch (message.Response.Status) 94return message.Response; 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 117switch (message.Response.Status) 121return message.Response; 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 171return Response.FromValue(value, message.Response); 174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 195switch (message.Response.Status) 200using var document = JsonDocument.Parse(message.Response.ContentStream); 202return Response.FromValue(value, message.Response); 205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointConnectionsRestOperations.cs (22)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248using var document = JsonDocument.Parse(message.Response.ContentStream); 250return Response.FromValue(value, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 305return message.Response; 307throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 338return message.Response; 340throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateLinkResourcesRestOperations.cs (8)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 130return Response.FromValue(value, message.Response); 133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QuotasRestOperations.cs (24)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 170switch (message.Response.Status) 175using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 177return Response.FromValue(value, message.Response); 180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 242switch (message.Response.Status) 247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 249return Response.FromValue(value, message.Response); 252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 274switch (message.Response.Status) 279using var document = JsonDocument.Parse(message.Response.ContentStream); 281return Response.FromValue(value, message.Response); 284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations.cs (8)
66switch (message.Response.Status) 71using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 73return Response.FromValue(value, message.Response); 76throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 86switch (message.Response.Status) 91using var document = JsonDocument.Parse(message.Response.ContentStream); 93return Response.FromValue(value, message.Response); 96throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UsagesRestOperations.cs (16)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 156switch (message.Response.Status) 161using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 163return Response.FromValue(value, message.Response); 166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 188switch (message.Response.Status) 193using var document = JsonDocument.Parse(message.Response.ContentStream); 195return Response.FromValue(value, message.Response); 198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineSizesRestOperations.cs (8)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceConnectionsRestOperations.cs (30)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140using var document = JsonDocument.Parse(message.Response.ContentStream); 142return Response.FromValue(value, message.Response); 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 302switch (message.Response.Status) 307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 309return Response.FromValue(value, message.Response); 312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 344using var document = JsonDocument.Parse(message.Response.ContentStream); 346return Response.FromValue(value, message.Response); 349throw _clientDiagnostics.CreateRequestFailedException(message.Response); 397switch (message.Response.Status) 401return message.Response; 403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 434return message.Response; 436throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceFeaturesRestOperations.cs (16)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 130return Response.FromValue(value, message.Response); 133throw _clientDiagnostics.CreateRequestFailedException(message.Response); 173switch (message.Response.Status) 178using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 180return Response.FromValue(value, message.Response); 183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210switch (message.Response.Status) 215using var document = JsonDocument.Parse(message.Response.ContentStream); 217return Response.FromValue(value, message.Response); 220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspacesRestOperations.cs (74)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187return message.Response; 189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221return message.Response; 223throw _clientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 269return message.Response; 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 298return message.Response; 300throw _clientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 357return Response.FromValue(value, message.Response); 360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 392using var document = JsonDocument.Parse(message.Response.ContentStream); 394return Response.FromValue(value, message.Response); 397throw _clientDiagnostics.CreateRequestFailedException(message.Response); 437switch (message.Response.Status) 442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 444return Response.FromValue(value, message.Response); 447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 517switch (message.Response.Status) 522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 524return Response.FromValue(value, message.Response); 527throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 549switch (message.Response.Status) 554using var document = JsonDocument.Parse(message.Response.ContentStream); 556return Response.FromValue(value, message.Response); 559throw _clientDiagnostics.CreateRequestFailedException(message.Response); 601switch (message.Response.Status) 604return message.Response; 606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 628switch (message.Response.Status) 631return message.Response; 633throw _clientDiagnostics.CreateRequestFailedException(message.Response); 664switch (message.Response.Status) 669using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 671return Response.FromValue(value, message.Response); 674throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 685switch (message.Response.Status) 690using var document = JsonDocument.Parse(message.Response.ContentStream); 692return Response.FromValue(value, message.Response); 695throw _clientDiagnostics.CreateRequestFailedException(message.Response); 731switch (message.Response.Status) 736using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 738return Response.FromValue(value, message.Response); 741throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 769using var document = JsonDocument.Parse(message.Response.ContentStream); 771return Response.FromValue(value, message.Response); 774throw _clientDiagnostics.CreateRequestFailedException(message.Response); 805switch (message.Response.Status) 810using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 812return Response.FromValue(value, message.Response); 815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 833switch (message.Response.Status) 838using var document = JsonDocument.Parse(message.Response.ContentStream); 840return Response.FromValue(value, message.Response); 843throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.ResourceManager.Network (4893)
Generated\RestOperations\ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 207return message.Response; 209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 250return message.Response; 252throw _clientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 313return Response.FromValue(value, message.Response); 316return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355using var document = JsonDocument.Parse(message.Response.ContentStream); 357return Response.FromValue(value, message.Response); 360return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response); 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationGatewayPrivateLinkResourcesRestOperations.cs (16)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationGatewaysRestOperations.cs (154)
88switch (message.Response.Status) 93return message.Response; 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127return message.Response; 129throw _clientDiagnostics.CreateRequestFailedException(message.Response); 176switch (message.Response.Status) 181using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 183return Response.FromValue(value, message.Response); 186return Response.FromValue((ApplicationGatewayData)null, message.Response); 188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 220using var document = JsonDocument.Parse(message.Response.ContentStream); 222return Response.FromValue(value, message.Response); 225return Response.FromValue((ApplicationGatewayData)null, message.Response); 227throw _clientDiagnostics.CreateRequestFailedException(message.Response); 283switch (message.Response.Status) 287return message.Response; 289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 321switch (message.Response.Status) 325return message.Response; 327throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425switch (message.Response.Status) 430using var document = JsonDocument.Parse(message.Response.ContentStream); 432return Response.FromValue(value, message.Response); 435throw _clientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 513using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 579switch (message.Response.Status) 584using var document = JsonDocument.Parse(message.Response.ContentStream); 586return Response.FromValue(value, message.Response); 589throw _clientDiagnostics.CreateRequestFailedException(message.Response); 637switch (message.Response.Status) 641return message.Response; 643throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 670switch (message.Response.Status) 674return message.Response; 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 724switch (message.Response.Status) 728return message.Response; 730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 757switch (message.Response.Status) 761return message.Response; 763throw _clientDiagnostics.CreateRequestFailedException(message.Response); 816switch (message.Response.Status) 820return message.Response; 822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 850switch (message.Response.Status) 854return message.Response; 856throw _clientDiagnostics.CreateRequestFailedException(message.Response); 918switch (message.Response.Status) 922return message.Response; 924throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 957switch (message.Response.Status) 961return message.Response; 963throw _clientDiagnostics.CreateRequestFailedException(message.Response); 997switch (message.Response.Status) 1002using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1009return Response.FromValue(value, message.Response); 1012throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1029switch (message.Response.Status) 1034using var document = JsonDocument.Parse(message.Response.ContentStream); 1041return Response.FromValue(value, message.Response); 1044throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1078switch (message.Response.Status) 1083using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1090return Response.FromValue(value, message.Response); 1093throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1110switch (message.Response.Status) 1115using var document = JsonDocument.Parse(message.Response.ContentStream); 1122return Response.FromValue(value, message.Response); 1125throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1159switch (message.Response.Status) 1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1171return Response.FromValue(value, message.Response); 1174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1191switch (message.Response.Status) 1196using var document = JsonDocument.Parse(message.Response.ContentStream); 1203return Response.FromValue(value, message.Response); 1206throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1240switch (message.Response.Status) 1245using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1247return Response.FromValue(value, message.Response); 1250throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1267switch (message.Response.Status) 1272using var document = JsonDocument.Parse(message.Response.ContentStream); 1274return Response.FromValue(value, message.Response); 1277throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1311switch (message.Response.Status) 1316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1318return Response.FromValue(value, message.Response); 1321return Response.FromValue((ApplicationGatewayAvailableSslOptionsData)null, message.Response); 1323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1340switch (message.Response.Status) 1345using var document = JsonDocument.Parse(message.Response.ContentStream); 1347return Response.FromValue(value, message.Response); 1350return Response.FromValue((ApplicationGatewayAvailableSslOptionsData)null, message.Response); 1352throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1386switch (message.Response.Status) 1391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1393return Response.FromValue(value, message.Response); 1396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1413switch (message.Response.Status) 1418using var document = JsonDocument.Parse(message.Response.ContentStream); 1420return Response.FromValue(value, message.Response); 1423throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1463switch (message.Response.Status) 1468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1470return Response.FromValue(value, message.Response); 1473return Response.FromValue((ApplicationGatewaySslPredefinedPolicyData)null, message.Response); 1475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1497switch (message.Response.Status) 1502using var document = JsonDocument.Parse(message.Response.ContentStream); 1504return Response.FromValue(value, message.Response); 1507return Response.FromValue((ApplicationGatewaySslPredefinedPolicyData)null, message.Response); 1509throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1550switch (message.Response.Status) 1555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1557return Response.FromValue(value, message.Response); 1560throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1587switch (message.Response.Status) 1592using var document = JsonDocument.Parse(message.Response.ContentStream); 1594return Response.FromValue(value, message.Response); 1597throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1633switch (message.Response.Status) 1638using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1640return Response.FromValue(value, message.Response); 1643throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1665switch (message.Response.Status) 1670using var document = JsonDocument.Parse(message.Response.ContentStream); 1672return Response.FromValue(value, message.Response); 1675throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1711switch (message.Response.Status) 1716using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1718return Response.FromValue(value, message.Response); 1721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1743switch (message.Response.Status) 1748using var document = JsonDocument.Parse(message.Response.ContentStream); 1750return Response.FromValue(value, message.Response); 1753throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationSecurityGroupsRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((ApplicationSecurityGroupData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((ApplicationSecurityGroupData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 624switch (message.Response.Status) 629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 631return Response.FromValue(value, message.Response); 634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 656switch (message.Response.Status) 661using var document = JsonDocument.Parse(message.Response.ContentStream); 663return Response.FromValue(value, message.Response); 666throw _clientDiagnostics.CreateRequestFailedException(message.Response); 707switch (message.Response.Status) 712using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 714return Response.FromValue(value, message.Response); 717throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableDelegationsRestOperations.cs (16)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 171return Response.FromValue(value, message.Response); 174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 201switch (message.Response.Status) 206using var document = JsonDocument.Parse(message.Response.ContentStream); 208return Response.FromValue(value, message.Response); 211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableEndpointServicesRestOperations.cs (16)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 171return Response.FromValue(value, message.Response); 174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 201switch (message.Response.Status) 206using var document = JsonDocument.Parse(message.Response.ContentStream); 208return Response.FromValue(value, message.Response); 211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailablePrivateEndpointTypesRestOperations.cs (32)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 171switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 208switch (message.Response.Status) 213using var document = JsonDocument.Parse(message.Response.ContentStream); 215return Response.FromValue(value, message.Response); 218throw _clientDiagnostics.CreateRequestFailedException(message.Response); 259switch (message.Response.Status) 264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 266return Response.FromValue(value, message.Response); 269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 296switch (message.Response.Status) 301using var document = JsonDocument.Parse(message.Response.ContentStream); 303return Response.FromValue(value, message.Response); 306throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 359return Response.FromValue(value, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 399using var document = JsonDocument.Parse(message.Response.ContentStream); 401return Response.FromValue(value, message.Response); 404throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableResourceGroupDelegationsRestOperations.cs (16)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableServiceAliasesRestOperations.cs (32)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 171switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 208switch (message.Response.Status) 213using var document = JsonDocument.Parse(message.Response.ContentStream); 215return Response.FromValue(value, message.Response); 218throw _clientDiagnostics.CreateRequestFailedException(message.Response); 259switch (message.Response.Status) 264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 266return Response.FromValue(value, message.Response); 269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 296switch (message.Response.Status) 301using var document = JsonDocument.Parse(message.Response.ContentStream); 303return Response.FromValue(value, message.Response); 306throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 359return Response.FromValue(value, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 399using var document = JsonDocument.Parse(message.Response.ContentStream); 401return Response.FromValue(value, message.Response); 404throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AzureFirewallFqdnTagsRestOperations.cs (16)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 147switch (message.Response.Status) 152using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 154return Response.FromValue(value, message.Response); 157throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 179switch (message.Response.Status) 184using var document = JsonDocument.Parse(message.Response.ContentStream); 186return Response.FromValue(value, message.Response); 189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AzureFirewallsRestOperations.cs (60)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((AzureFirewallData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((AzureFirewallData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 386return message.Response; 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 424return message.Response; 426throw _clientDiagnostics.CreateRequestFailedException(message.Response); 467switch (message.Response.Status) 472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 474return Response.FromValue(value, message.Response); 477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 499switch (message.Response.Status) 504using var document = JsonDocument.Parse(message.Response.ContentStream); 506return Response.FromValue(value, message.Response); 509throw _clientDiagnostics.CreateRequestFailedException(message.Response); 543switch (message.Response.Status) 548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 550return Response.FromValue(value, message.Response); 553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 570switch (message.Response.Status) 575using var document = JsonDocument.Parse(message.Response.ContentStream); 577return Response.FromValue(value, message.Response); 580throw _clientDiagnostics.CreateRequestFailedException(message.Response); 621switch (message.Response.Status) 626using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 628return Response.FromValue(value, message.Response); 631throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw _clientDiagnostics.CreateRequestFailedException(message.Response); 704switch (message.Response.Status) 709using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 711return Response.FromValue(value, message.Response); 714throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 736switch (message.Response.Status) 741using var document = JsonDocument.Parse(message.Response.ContentStream); 743return Response.FromValue(value, message.Response); 746throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BastionHostsRestOperations.cs (54)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((BastionHostData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((BastionHostData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 360switch (message.Response.Status) 365using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 367return Response.FromValue(value, message.Response); 370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 392using var document = JsonDocument.Parse(message.Response.ContentStream); 394return Response.FromValue(value, message.Response); 397throw _clientDiagnostics.CreateRequestFailedException(message.Response); 438switch (message.Response.Status) 443using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 445return Response.FromValue(value, message.Response); 448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 475using var document = JsonDocument.Parse(message.Response.ContentStream); 477return Response.FromValue(value, message.Response); 480throw _clientDiagnostics.CreateRequestFailedException(message.Response); 516switch (message.Response.Status) 521using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 523return Response.FromValue(value, message.Response); 526throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 548switch (message.Response.Status) 553using var document = JsonDocument.Parse(message.Response.ContentStream); 555return Response.FromValue(value, message.Response); 558throw _clientDiagnostics.CreateRequestFailedException(message.Response); 599switch (message.Response.Status) 604using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 606return Response.FromValue(value, message.Response); 609throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 636switch (message.Response.Status) 641using var document = JsonDocument.Parse(message.Response.ContentStream); 643return Response.FromValue(value, message.Response); 646throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BgpServiceCommunitiesRestOperations.cs (16)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 147switch (message.Response.Status) 152using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 154return Response.FromValue(value, message.Response); 157throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 179switch (message.Response.Status) 184using var document = JsonDocument.Parse(message.Response.ContentStream); 186return Response.FromValue(value, message.Response); 189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConnectionMonitorsRestOperations.cs (56)
108switch (message.Response.Status) 112return message.Response; 114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 156return message.Response; 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 219return Response.FromValue(value, message.Response); 222return Response.FromValue((ConnectionMonitorData)null, message.Response); 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 261using var document = JsonDocument.Parse(message.Response.ContentStream); 263return Response.FromValue(value, message.Response); 266return Response.FromValue((ConnectionMonitorData)null, message.Response); 268throw _clientDiagnostics.CreateRequestFailedException(message.Response); 322switch (message.Response.Status) 326return message.Response; 328throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 360switch (message.Response.Status) 364return message.Response; 366throw _clientDiagnostics.CreateRequestFailedException(message.Response); 429switch (message.Response.Status) 434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 436return Response.FromValue(value, message.Response); 439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 481using var document = JsonDocument.Parse(message.Response.ContentStream); 483return Response.FromValue(value, message.Response); 486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 541switch (message.Response.Status) 545return message.Response; 547throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 579switch (message.Response.Status) 583return message.Response; 585throw _clientDiagnostics.CreateRequestFailedException(message.Response); 640switch (message.Response.Status) 644return message.Response; 646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678switch (message.Response.Status) 682return message.Response; 684throw _clientDiagnostics.CreateRequestFailedException(message.Response); 739switch (message.Response.Status) 743return message.Response; 745throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 777switch (message.Response.Status) 781return message.Response; 783throw _clientDiagnostics.CreateRequestFailedException(message.Response); 831switch (message.Response.Status) 836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 838return Response.FromValue(value, message.Response); 841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 868switch (message.Response.Status) 873using var document = JsonDocument.Parse(message.Response.ContentStream); 875return Response.FromValue(value, message.Response); 878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CustomIPPrefixesRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((CustomIpPrefixData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((CustomIpPrefixData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 662switch (message.Response.Status) 667using var document = JsonDocument.Parse(message.Response.ContentStream); 669return Response.FromValue(value, message.Response); 672throw _clientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 720return Response.FromValue(value, message.Response); 723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DdosCustomPoliciesRestOperations.cs (30)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((DdosCustomPolicyData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((DdosCustomPolicyData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DdosProtectionPlansRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((DdosProtectionPlanData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((DdosProtectionPlanData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 624switch (message.Response.Status) 629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 631return Response.FromValue(value, message.Response); 634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 656switch (message.Response.Status) 661using var document = JsonDocument.Parse(message.Response.ContentStream); 663return Response.FromValue(value, message.Response); 666throw _clientDiagnostics.CreateRequestFailedException(message.Response); 707switch (message.Response.Status) 712using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 714return Response.FromValue(value, message.Response); 717throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DefaultSecurityRulesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((SecurityRuleData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((SecurityRuleData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DscpConfigurationRestOperations.cs (54)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192return message.Response; 194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226return message.Response; 228throw _clientDiagnostics.CreateRequestFailedException(message.Response); 275switch (message.Response.Status) 280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 282return Response.FromValue(value, message.Response); 285return Response.FromValue((DscpConfigurationData)null, message.Response); 287throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 314switch (message.Response.Status) 319using var document = JsonDocument.Parse(message.Response.ContentStream); 321return Response.FromValue(value, message.Response); 324return Response.FromValue((DscpConfigurationData)null, message.Response); 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 367switch (message.Response.Status) 372using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 374return Response.FromValue(value, message.Response); 377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 399switch (message.Response.Status) 404using var document = JsonDocument.Parse(message.Response.ContentStream); 406return Response.FromValue(value, message.Response); 409throw _clientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 475using var document = JsonDocument.Parse(message.Response.ContentStream); 477return Response.FromValue(value, message.Response); 480throw _clientDiagnostics.CreateRequestFailedException(message.Response); 521switch (message.Response.Status) 526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 528return Response.FromValue(value, message.Response); 531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 558switch (message.Response.Status) 563using var document = JsonDocument.Parse(message.Response.ContentStream); 565return Response.FromValue(value, message.Response); 568throw _clientDiagnostics.CreateRequestFailedException(message.Response); 604switch (message.Response.Status) 609using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 611return Response.FromValue(value, message.Response); 614throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 636switch (message.Response.Status) 641using var document = JsonDocument.Parse(message.Response.ContentStream); 643return Response.FromValue(value, message.Response); 646throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitAuthorizationsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitConnectionsRestOperations.cs (38)
101switch (message.Response.Status) 106return message.Response; 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150return message.Response; 152throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 220return Response.FromValue(value, message.Response); 223return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response); 225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 262switch (message.Response.Status) 267using var document = JsonDocument.Parse(message.Response.ContentStream); 269return Response.FromValue(value, message.Response); 272return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response); 274throw _clientDiagnostics.CreateRequestFailedException(message.Response); 344switch (message.Response.Status) 348return message.Response; 350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 392switch (message.Response.Status) 396return message.Response; 398throw _clientDiagnostics.CreateRequestFailedException(message.Response); 453switch (message.Response.Status) 458using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 460return Response.FromValue(value, message.Response); 463throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 556switch (message.Response.Status) 561using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 563return Response.FromValue(value, message.Response); 566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 603switch (message.Response.Status) 608using var document = JsonDocument.Parse(message.Response.ContentStream); 610return Response.FromValue(value, message.Response); 613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitPeeringsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitsRestOperations.cs (96)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((ExpressRouteCircuitData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((ExpressRouteCircuitData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 495switch (message.Response.Status) 499return message.Response; 501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 538switch (message.Response.Status) 542return message.Response; 544throw _clientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 609return message.Response; 611throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 648switch (message.Response.Status) 652return message.Response; 654throw _clientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 719return message.Response; 721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 758switch (message.Response.Status) 762return message.Response; 764throw _clientDiagnostics.CreateRequestFailedException(message.Response); 812switch (message.Response.Status) 817using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 819return Response.FromValue(value, message.Response); 822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 849switch (message.Response.Status) 854using var document = JsonDocument.Parse(message.Response.ContentStream); 856return Response.FromValue(value, message.Response); 859throw _clientDiagnostics.CreateRequestFailedException(message.Response); 914switch (message.Response.Status) 919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 921return Response.FromValue(value, message.Response); 924throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 956switch (message.Response.Status) 961using var document = JsonDocument.Parse(message.Response.ContentStream); 963return Response.FromValue(value, message.Response); 966throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1007switch (message.Response.Status) 1012using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1014return Response.FromValue(value, message.Response); 1017throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1039switch (message.Response.Status) 1044using var document = JsonDocument.Parse(message.Response.ContentStream); 1046return Response.FromValue(value, message.Response); 1049throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1083switch (message.Response.Status) 1088using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1090return Response.FromValue(value, message.Response); 1093throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1110switch (message.Response.Status) 1115using var document = JsonDocument.Parse(message.Response.ContentStream); 1117return Response.FromValue(value, message.Response); 1120throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1161switch (message.Response.Status) 1166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1168return Response.FromValue(value, message.Response); 1171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1198switch (message.Response.Status) 1203using var document = JsonDocument.Parse(message.Response.ContentStream); 1205return Response.FromValue(value, message.Response); 1208throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1244switch (message.Response.Status) 1249using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1251return Response.FromValue(value, message.Response); 1254throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1276switch (message.Response.Status) 1281using var document = JsonDocument.Parse(message.Response.ContentStream); 1283return Response.FromValue(value, message.Response); 1286throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteConnectionsRestOperations.cs (30)
103switch (message.Response.Status) 107return message.Response; 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 150return message.Response; 152throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 213return Response.FromValue(value, message.Response); 216return Response.FromValue((ExpressRouteConnectionData)null, message.Response); 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260return Response.FromValue((ExpressRouteConnectionData)null, message.Response); 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCrossConnectionPeeringsRestOperations.cs (38)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194return message.Response; 196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 233return message.Response; 235throw _clientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response); 345throw _clientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 412return message.Response; 414throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 455return message.Response; 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCrossConnectionsRestOperations.cs (74)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response); 253throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 285using var document = JsonDocument.Parse(message.Response.ContentStream); 287return Response.FromValue(value, message.Response); 290return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response); 292throw _clientDiagnostics.CreateRequestFailedException(message.Response); 348switch (message.Response.Status) 351return message.Response; 353throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 385switch (message.Response.Status) 388return message.Response; 390throw _clientDiagnostics.CreateRequestFailedException(message.Response); 446switch (message.Response.Status) 451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 453return Response.FromValue(value, message.Response); 456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 488switch (message.Response.Status) 493using var document = JsonDocument.Parse(message.Response.ContentStream); 495return Response.FromValue(value, message.Response); 498throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 563return message.Response; 565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 602switch (message.Response.Status) 606return message.Response; 608throw _clientDiagnostics.CreateRequestFailedException(message.Response); 669switch (message.Response.Status) 673return message.Response; 675throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 712switch (message.Response.Status) 716return message.Response; 718throw _clientDiagnostics.CreateRequestFailedException(message.Response); 779switch (message.Response.Status) 783return message.Response; 785throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 822switch (message.Response.Status) 826return message.Response; 828throw _clientDiagnostics.CreateRequestFailedException(message.Response); 864switch (message.Response.Status) 869using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 871return Response.FromValue(value, message.Response); 874throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 896switch (message.Response.Status) 901using var document = JsonDocument.Parse(message.Response.ContentStream); 903return Response.FromValue(value, message.Response); 906throw _clientDiagnostics.CreateRequestFailedException(message.Response); 947switch (message.Response.Status) 952using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 954return Response.FromValue(value, message.Response); 957throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 984switch (message.Response.Status) 989using var document = JsonDocument.Parse(message.Response.ContentStream); 991return Response.FromValue(value, message.Response); 994throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteGatewaysRestOperations.cs (44)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 250switch (message.Response.Status) 254return message.Response; 256throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 288switch (message.Response.Status) 292return message.Response; 294throw _clientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 354return message.Response; 356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 392return message.Response; 394throw _clientDiagnostics.CreateRequestFailedException(message.Response); 441switch (message.Response.Status) 446using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 448return Response.FromValue(value, message.Response); 451return Response.FromValue((ExpressRouteGatewayData)null, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 480switch (message.Response.Status) 485using var document = JsonDocument.Parse(message.Response.ContentStream); 487return Response.FromValue(value, message.Response); 490return Response.FromValue((ExpressRouteGatewayData)null, message.Response); 492throw _clientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544return message.Response; 546throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 573switch (message.Response.Status) 578return message.Response; 580throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteLinksRestOperations.cs (26)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((ExpressRouteLinkData)null, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ExpressRouteLinkData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 205return Response.FromValue(value, message.Response); 208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRoutePortsLocationsRestOperations.cs (26)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 151switch (message.Response.Status) 156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 158return Response.FromValue(value, message.Response); 161return Response.FromValue((ExpressRoutePortsLocationData)null, message.Response); 163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 185switch (message.Response.Status) 190using var document = JsonDocument.Parse(message.Response.ContentStream); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((ExpressRoutePortsLocationData)null, message.Response); 197throw _clientDiagnostics.CreateRequestFailedException(message.Response); 233switch (message.Response.Status) 238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 240return Response.FromValue(value, message.Response); 243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 270using var document = JsonDocument.Parse(message.Response.ContentStream); 272return Response.FromValue(value, message.Response); 275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRoutePortsRestOperations.cs (70)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((ExpressRoutePortData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((ExpressRoutePortData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 645switch (message.Response.Status) 650using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 652return Response.FromValue(value, message.Response); 655throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 687switch (message.Response.Status) 692using var document = JsonDocument.Parse(message.Response.ContentStream); 694return Response.FromValue(value, message.Response); 697throw _clientDiagnostics.CreateRequestFailedException(message.Response); 738switch (message.Response.Status) 743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 745return Response.FromValue(value, message.Response); 748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 775switch (message.Response.Status) 780using var document = JsonDocument.Parse(message.Response.ContentStream); 782return Response.FromValue(value, message.Response); 785throw _clientDiagnostics.CreateRequestFailedException(message.Response); 821switch (message.Response.Status) 826using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 828return Response.FromValue(value, message.Response); 831throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 853switch (message.Response.Status) 858using var document = JsonDocument.Parse(message.Response.ContentStream); 860return Response.FromValue(value, message.Response); 863throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteServiceProvidersRestOperations.cs (16)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 147switch (message.Response.Status) 152using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 154return Response.FromValue(value, message.Response); 157throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 179switch (message.Response.Status) 184using var document = JsonDocument.Parse(message.Response.ContentStream); 186return Response.FromValue(value, message.Response); 189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallPoliciesRestOperations.cs (54)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((FirewallPolicyData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((FirewallPolicyData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 373switch (message.Response.Status) 378using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 380return Response.FromValue(value, message.Response); 383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 410using var document = JsonDocument.Parse(message.Response.ContentStream); 412return Response.FromValue(value, message.Response); 415throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 481using var document = JsonDocument.Parse(message.Response.ContentStream); 483return Response.FromValue(value, message.Response); 486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response); 610switch (message.Response.Status) 615using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 617return Response.FromValue(value, message.Response); 620throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 642switch (message.Response.Status) 647using var document = JsonDocument.Parse(message.Response.ContentStream); 649return Response.FromValue(value, message.Response); 652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallPolicyRuleCollectionGroupsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FlowLogsRestOperations.cs (46)
103switch (message.Response.Status) 107return message.Response; 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 150return message.Response; 152throw _clientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 222return Response.FromValue(value, message.Response); 225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 262switch (message.Response.Status) 267using var document = JsonDocument.Parse(message.Response.ContentStream); 269return Response.FromValue(value, message.Response); 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 326switch (message.Response.Status) 331using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 333return Response.FromValue(value, message.Response); 336return Response.FromValue((FlowLogData)null, message.Response); 338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 370switch (message.Response.Status) 375using var document = JsonDocument.Parse(message.Response.ContentStream); 377return Response.FromValue(value, message.Response); 380return Response.FromValue((FlowLogData)null, message.Response); 382throw _clientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 440return message.Response; 442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 474switch (message.Response.Status) 478return message.Response; 480throw _clientDiagnostics.CreateRequestFailedException(message.Response); 528switch (message.Response.Status) 533using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 535return Response.FromValue(value, message.Response); 538throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 565switch (message.Response.Status) 570using var document = JsonDocument.Parse(message.Response.ContentStream); 572return Response.FromValue(value, message.Response); 575throw _clientDiagnostics.CreateRequestFailedException(message.Response); 621switch (message.Response.Status) 626using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 628return Response.FromValue(value, message.Response); 631throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 663switch (message.Response.Status) 668using var document = JsonDocument.Parse(message.Response.ContentStream); 670return Response.FromValue(value, message.Response); 673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\HubRouteTablesRestOperations.cs (38)
103switch (message.Response.Status) 107return message.Response; 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 150return message.Response; 152throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 213return Response.FromValue(value, message.Response); 216return Response.FromValue((HubRouteTableData)null, message.Response); 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260return Response.FromValue((HubRouteTableData)null, message.Response); 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\HubVirtualNetworkConnectionsRestOperations.cs (38)
103switch (message.Response.Status) 107return message.Response; 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 150return message.Response; 152throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211return message.Response; 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 245switch (message.Response.Status) 250return message.Response; 252throw _clientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 313return Response.FromValue(value, message.Response); 316return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355using var document = JsonDocument.Parse(message.Response.ContentStream); 357return Response.FromValue(value, message.Response); 360return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response); 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InboundNatRulesRestOperations.cs (38)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194return message.Response; 196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 233return message.Response; 235throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((InboundNatRuleData)null, message.Response); 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 344using var document = JsonDocument.Parse(message.Response.ContentStream); 346return Response.FromValue(value, message.Response); 349return Response.FromValue((InboundNatRuleData)null, message.Response); 351throw _clientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 418return message.Response; 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 461return message.Response; 463throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 551switch (message.Response.Status) 556using var document = JsonDocument.Parse(message.Response.ContentStream); 558return Response.FromValue(value, message.Response); 561throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InboundSecurityRuleRestOperations.cs (6)
102switch (message.Response.Status) 106return message.Response; 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 149return message.Response; 151throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\IpAllocationsRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((IpAllocationData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((IpAllocationData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 662switch (message.Response.Status) 667using var document = JsonDocument.Parse(message.Response.ContentStream); 669return Response.FromValue(value, message.Response); 672throw _clientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 720return Response.FromValue(value, message.Response); 723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\IpGroupsRestOperations.cs (62)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((IpGroupData)null, message.Response); 104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((IpGroupData)null, message.Response); 144throw _clientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 204return message.Response; 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 307return Response.FromValue(value, message.Response); 310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 342switch (message.Response.Status) 347using var document = JsonDocument.Parse(message.Response.ContentStream); 349return Response.FromValue(value, message.Response); 352throw _clientDiagnostics.CreateRequestFailedException(message.Response); 399switch (message.Response.Status) 404return message.Response; 406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 433switch (message.Response.Status) 438return message.Response; 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 481switch (message.Response.Status) 486using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 488return Response.FromValue(value, message.Response); 491throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 557switch (message.Response.Status) 562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 564return Response.FromValue(value, message.Response); 567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 635switch (message.Response.Status) 640using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 642return Response.FromValue(value, message.Response); 645throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 677using var document = JsonDocument.Parse(message.Response.ContentStream); 679return Response.FromValue(value, message.Response); 682throw _clientDiagnostics.CreateRequestFailedException(message.Response); 718switch (message.Response.Status) 723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 725return Response.FromValue(value, message.Response); 728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerBackendAddressPoolsRestOperations.cs (38)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((BackendAddressPoolData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((BackendAddressPoolData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 312return message.Response; 314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 416return message.Response; 418throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455return message.Response; 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerFrontendIPConfigurationsRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((FrontendIPConfigurationData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((FrontendIPConfigurationData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerLoadBalancingRulesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((LoadBalancingRuleData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((LoadBalancingRuleData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerNetworkInterfacesRestOperations.cs (16)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerOutboundRulesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((OutboundRuleData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((OutboundRuleData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerProbesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((ProbeData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((ProbeData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancersRestOperations.cs (68)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((LoadBalancerData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((LoadBalancerData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 644switch (message.Response.Status) 648return message.Response; 650throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 677switch (message.Response.Status) 681return message.Response; 683throw _clientDiagnostics.CreateRequestFailedException(message.Response); 719switch (message.Response.Status) 724using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 726return Response.FromValue(value, message.Response); 729throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 751switch (message.Response.Status) 756using var document = JsonDocument.Parse(message.Response.ContentStream); 758return Response.FromValue(value, message.Response); 761throw _clientDiagnostics.CreateRequestFailedException(message.Response); 802switch (message.Response.Status) 807using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 809return Response.FromValue(value, message.Response); 812throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 839switch (message.Response.Status) 844using var document = JsonDocument.Parse(message.Response.ContentStream); 846return Response.FromValue(value, message.Response); 849throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LocalNetworkGatewaysRestOperations.cs (46)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((LocalNetworkGatewayData)null, message.Response); 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 226switch (message.Response.Status) 231using var document = JsonDocument.Parse(message.Response.ContentStream); 233return Response.FromValue(value, message.Response); 236return Response.FromValue((LocalNetworkGatewayData)null, message.Response); 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 285switch (message.Response.Status) 290return message.Response; 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 558switch (message.Response.Status) 563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 565return Response.FromValue(value, message.Response); 568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 595switch (message.Response.Status) 600using var document = JsonDocument.Parse(message.Response.ContentStream); 602return Response.FromValue(value, message.Response); 605throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NatGatewaysRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((NatGatewayData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((NatGatewayData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 293return message.Response; 295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332return message.Response; 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw _clientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw _clientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw _clientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw _clientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NatRulesRestOperations.cs (38)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((VpnGatewayNatRuleData)null, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((VpnGatewayNatRuleData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 217return message.Response; 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 260return message.Response; 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceIPConfigurationsRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((NetworkInterfaceIPConfigurationData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((NetworkInterfaceIPConfigurationData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceLoadBalancersRestOperations.cs (16)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfacesRestOperations.cs (74)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((NetworkInterfaceData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((NetworkInterfaceData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 646return message.Response; 648throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 675switch (message.Response.Status) 679return message.Response; 681throw _clientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 733return message.Response; 735throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 766return message.Response; 768throw _clientDiagnostics.CreateRequestFailedException(message.Response); 804switch (message.Response.Status) 809using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 811return Response.FromValue(value, message.Response); 814throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 836switch (message.Response.Status) 841using var document = JsonDocument.Parse(message.Response.ContentStream); 843return Response.FromValue(value, message.Response); 846throw _clientDiagnostics.CreateRequestFailedException(message.Response); 887switch (message.Response.Status) 892using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 894return Response.FromValue(value, message.Response); 897throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 924switch (message.Response.Status) 929using var document = JsonDocument.Parse(message.Response.ContentStream); 931return Response.FromValue(value, message.Response); 934throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceTapConfigurationsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkManagementRestOperations.cs (22)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 124switch (message.Response.Status) 129using var document = JsonDocument.Parse(message.Response.ContentStream); 131return Response.FromValue(value, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 224using var document = JsonDocument.Parse(message.Response.ContentStream); 226return Response.FromValue(value, message.Response); 229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 286switch (message.Response.Status) 290return message.Response; 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 328return message.Response; 330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkProfilesRestOperations.cs (64)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((NetworkProfileData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((NetworkProfileData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 296return Response.FromValue(value, message.Response); 299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 337using var document = JsonDocument.Parse(message.Response.ContentStream); 339return Response.FromValue(value, message.Response); 342throw _clientDiagnostics.CreateRequestFailedException(message.Response); 398switch (message.Response.Status) 403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 405return Response.FromValue(value, message.Response); 408throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 440switch (message.Response.Status) 445using var document = JsonDocument.Parse(message.Response.ContentStream); 447return Response.FromValue(value, message.Response); 450throw _clientDiagnostics.CreateRequestFailedException(message.Response); 484switch (message.Response.Status) 489using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 491return Response.FromValue(value, message.Response); 494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 511switch (message.Response.Status) 516using var document = JsonDocument.Parse(message.Response.ContentStream); 518return Response.FromValue(value, message.Response); 521throw _clientDiagnostics.CreateRequestFailedException(message.Response); 562switch (message.Response.Status) 567using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 569return Response.FromValue(value, message.Response); 572throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 594switch (message.Response.Status) 599using var document = JsonDocument.Parse(message.Response.ContentStream); 601return Response.FromValue(value, message.Response); 604throw _clientDiagnostics.CreateRequestFailedException(message.Response); 640switch (message.Response.Status) 645using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 647return Response.FromValue(value, message.Response); 650throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 677using var document = JsonDocument.Parse(message.Response.ContentStream); 679return Response.FromValue(value, message.Response); 682throw _clientDiagnostics.CreateRequestFailedException(message.Response); 723switch (message.Response.Status) 728using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 730return Response.FromValue(value, message.Response); 733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkSecurityGroupsRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((NetworkSecurityGroupData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((NetworkSecurityGroupData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 662switch (message.Response.Status) 667using var document = JsonDocument.Parse(message.Response.ContentStream); 669return Response.FromValue(value, message.Response); 672throw _clientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 720return Response.FromValue(value, message.Response); 723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkVirtualAppliancesRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((NetworkVirtualApplianceData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((NetworkVirtualApplianceData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 293using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 295return Response.FromValue(value, message.Response); 298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330switch (message.Response.Status) 335using var document = JsonDocument.Parse(message.Response.ContentStream); 337return Response.FromValue(value, message.Response); 340throw _clientDiagnostics.CreateRequestFailedException(message.Response); 396switch (message.Response.Status) 400return message.Response; 402throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 434switch (message.Response.Status) 438return message.Response; 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 481switch (message.Response.Status) 486using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 488return Response.FromValue(value, message.Response); 491throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 557switch (message.Response.Status) 562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 564return Response.FromValue(value, message.Response); 567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 635switch (message.Response.Status) 640using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 642return Response.FromValue(value, message.Response); 645throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 677using var document = JsonDocument.Parse(message.Response.ContentStream); 679return Response.FromValue(value, message.Response); 682throw _clientDiagnostics.CreateRequestFailedException(message.Response); 718switch (message.Response.Status) 723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 725return Response.FromValue(value, message.Response); 728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkWatchersRestOperations.cs (122)
96switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207return Response.FromValue((NetworkWatcherData)null, message.Response); 209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 241using var document = JsonDocument.Parse(message.Response.ContentStream); 243return Response.FromValue(value, message.Response); 246return Response.FromValue((NetworkWatcherData)null, message.Response); 248throw _clientDiagnostics.CreateRequestFailedException(message.Response); 295switch (message.Response.Status) 299return message.Response; 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw _clientDiagnostics.CreateRequestFailedException(message.Response); 483switch (message.Response.Status) 488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 490return Response.FromValue(value, message.Response); 493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw _clientDiagnostics.CreateRequestFailedException(message.Response); 653switch (message.Response.Status) 658using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 660return Response.FromValue(value, message.Response); 663throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 695switch (message.Response.Status) 700using var document = JsonDocument.Parse(message.Response.ContentStream); 702return Response.FromValue(value, message.Response); 705throw _clientDiagnostics.CreateRequestFailedException(message.Response); 762switch (message.Response.Status) 766return message.Response; 768throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 800switch (message.Response.Status) 804return message.Response; 806throw _clientDiagnostics.CreateRequestFailedException(message.Response); 863switch (message.Response.Status) 867return message.Response; 869throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 901switch (message.Response.Status) 905return message.Response; 907throw _clientDiagnostics.CreateRequestFailedException(message.Response); 964switch (message.Response.Status) 968return message.Response; 970throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1002switch (message.Response.Status) 1006return message.Response; 1008throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1065switch (message.Response.Status) 1069return message.Response; 1071throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1103switch (message.Response.Status) 1107return message.Response; 1109throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1166switch (message.Response.Status) 1170return message.Response; 1172throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1204switch (message.Response.Status) 1208return message.Response; 1210throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1267switch (message.Response.Status) 1271return message.Response; 1273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1305switch (message.Response.Status) 1309return message.Response; 1311throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1368switch (message.Response.Status) 1372return message.Response; 1374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1406switch (message.Response.Status) 1410return message.Response; 1412throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1469switch (message.Response.Status) 1473return message.Response; 1475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1507switch (message.Response.Status) 1511return message.Response; 1513throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1570switch (message.Response.Status) 1574return message.Response; 1576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1608switch (message.Response.Status) 1612return message.Response; 1614throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1671switch (message.Response.Status) 1675return message.Response; 1677throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1709switch (message.Response.Status) 1713return message.Response; 1715throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1772switch (message.Response.Status) 1776return message.Response; 1778throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1810switch (message.Response.Status) 1814return message.Response; 1816throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\P2SVpnGatewaysRestOperations.cs (90)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((P2SVpnGatewayData)null, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((P2SVpnGatewayData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 198return message.Response; 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 236return message.Response; 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 336return message.Response; 338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 390return message.Response; 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424return message.Response; 426throw _clientDiagnostics.CreateRequestFailedException(message.Response); 467switch (message.Response.Status) 472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 474return Response.FromValue(value, message.Response); 477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 499switch (message.Response.Status) 504using var document = JsonDocument.Parse(message.Response.ContentStream); 506return Response.FromValue(value, message.Response); 509throw _clientDiagnostics.CreateRequestFailedException(message.Response); 543switch (message.Response.Status) 548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 550return Response.FromValue(value, message.Response); 553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 570switch (message.Response.Status) 575using var document = JsonDocument.Parse(message.Response.ContentStream); 577return Response.FromValue(value, message.Response); 580throw _clientDiagnostics.CreateRequestFailedException(message.Response); 628switch (message.Response.Status) 632return message.Response; 634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 661switch (message.Response.Status) 665return message.Response; 667throw _clientDiagnostics.CreateRequestFailedException(message.Response); 724switch (message.Response.Status) 728return message.Response; 730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 766return message.Response; 768throw _clientDiagnostics.CreateRequestFailedException(message.Response); 816switch (message.Response.Status) 820return message.Response; 822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 849switch (message.Response.Status) 853return message.Response; 855throw _clientDiagnostics.CreateRequestFailedException(message.Response); 912switch (message.Response.Status) 916return message.Response; 918throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 950switch (message.Response.Status) 954return message.Response; 956throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1013switch (message.Response.Status) 1017return message.Response; 1019throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1055return message.Response; 1057throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1098switch (message.Response.Status) 1103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1105return Response.FromValue(value, message.Response); 1108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1135switch (message.Response.Status) 1140using var document = JsonDocument.Parse(message.Response.ContentStream); 1142return Response.FromValue(value, message.Response); 1145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1181switch (message.Response.Status) 1186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1188return Response.FromValue(value, message.Response); 1191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1213switch (message.Response.Status) 1218using var document = JsonDocument.Parse(message.Response.ContentStream); 1220return Response.FromValue(value, message.Response); 1223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PacketCapturesRestOperations.cs (42)
103switch (message.Response.Status) 106return message.Response; 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 148return message.Response; 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 204switch (message.Response.Status) 209using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 211return Response.FromValue(value, message.Response); 214return Response.FromValue((PacketCaptureData)null, message.Response); 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 255return Response.FromValue(value, message.Response); 258return Response.FromValue((PacketCaptureData)null, message.Response); 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 356return message.Response; 358throw _clientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 417return message.Response; 419throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 455return message.Response; 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 512switch (message.Response.Status) 516return message.Response; 518throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 550switch (message.Response.Status) 554return message.Response; 556throw _clientDiagnostics.CreateRequestFailedException(message.Response); 604switch (message.Response.Status) 609using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 611return Response.FromValue(value, message.Response); 614throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 641switch (message.Response.Status) 646using var document = JsonDocument.Parse(message.Response.ContentStream); 648return Response.FromValue(value, message.Response); 651throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PeerExpressRouteCircuitConnectionsRestOperations.cs (26)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111return Response.FromValue((PeerExpressRouteCircuitConnectionData)null, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160return Response.FromValue((PeerExpressRouteCircuitConnectionData)null, message.Response); 162throw _clientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269throw _clientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 327return Response.FromValue(value, message.Response); 330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 372using var document = JsonDocument.Parse(message.Response.ContentStream); 374return Response.FromValue(value, message.Response); 377throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateDnsZoneGroupsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointsRestOperations.cs (54)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((PrivateEndpointData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((PrivateEndpointData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 373switch (message.Response.Status) 378using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 380return Response.FromValue(value, message.Response); 383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 410using var document = JsonDocument.Parse(message.Response.ContentStream); 412return Response.FromValue(value, message.Response); 415throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 481using var document = JsonDocument.Parse(message.Response.ContentStream); 483return Response.FromValue(value, message.Response); 486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response); 610switch (message.Response.Status) 615using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 617return Response.FromValue(value, message.Response); 620throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 642switch (message.Response.Status) 647using var document = JsonDocument.Parse(message.Response.ContentStream); 649return Response.FromValue(value, message.Response); 652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkServicesRestOperations.cs (138)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((PrivateLinkServiceData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((PrivateLinkServiceData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 373switch (message.Response.Status) 378using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 380return Response.FromValue(value, message.Response); 383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 410using var document = JsonDocument.Parse(message.Response.ContentStream); 412return Response.FromValue(value, message.Response); 415throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 481using var document = JsonDocument.Parse(message.Response.ContentStream); 483return Response.FromValue(value, message.Response); 486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 557throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 590switch (message.Response.Status) 595using var document = JsonDocument.Parse(message.Response.ContentStream); 597return Response.FromValue(value, message.Response); 600return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 602throw _clientDiagnostics.CreateRequestFailedException(message.Response); 665switch (message.Response.Status) 670using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 672return Response.FromValue(value, message.Response); 675throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 712switch (message.Response.Status) 717using var document = JsonDocument.Parse(message.Response.ContentStream); 719return Response.FromValue(value, message.Response); 722throw _clientDiagnostics.CreateRequestFailedException(message.Response); 776switch (message.Response.Status) 781return message.Response; 783throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 815switch (message.Response.Status) 820return message.Response; 822throw _clientDiagnostics.CreateRequestFailedException(message.Response); 870switch (message.Response.Status) 875using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 877return Response.FromValue(value, message.Response); 880throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 907switch (message.Response.Status) 912using var document = JsonDocument.Parse(message.Response.ContentStream); 914return Response.FromValue(value, message.Response); 917throw _clientDiagnostics.CreateRequestFailedException(message.Response); 967switch (message.Response.Status) 971return message.Response; 973throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1000switch (message.Response.Status) 1004return message.Response; 1006throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1063switch (message.Response.Status) 1067return message.Response; 1069throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1101switch (message.Response.Status) 1105return message.Response; 1107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1148switch (message.Response.Status) 1153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1155return Response.FromValue(value, message.Response); 1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1180switch (message.Response.Status) 1185using var document = JsonDocument.Parse(message.Response.ContentStream); 1187return Response.FromValue(value, message.Response); 1190throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1238switch (message.Response.Status) 1243using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1245return Response.FromValue(value, message.Response); 1248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1275switch (message.Response.Status) 1280using var document = JsonDocument.Parse(message.Response.ContentStream); 1282return Response.FromValue(value, message.Response); 1285throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1326switch (message.Response.Status) 1331using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1333return Response.FromValue(value, message.Response); 1336throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1363switch (message.Response.Status) 1368using var document = JsonDocument.Parse(message.Response.ContentStream); 1370return Response.FromValue(value, message.Response); 1373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1409switch (message.Response.Status) 1414using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1416return Response.FromValue(value, message.Response); 1419throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1441switch (message.Response.Status) 1446using var document = JsonDocument.Parse(message.Response.ContentStream); 1448return Response.FromValue(value, message.Response); 1451throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1497switch (message.Response.Status) 1502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1504return Response.FromValue(value, message.Response); 1507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1539switch (message.Response.Status) 1544using var document = JsonDocument.Parse(message.Response.ContentStream); 1546return Response.FromValue(value, message.Response); 1549throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1590switch (message.Response.Status) 1595using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1597return Response.FromValue(value, message.Response); 1600throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1627switch (message.Response.Status) 1632using var document = JsonDocument.Parse(message.Response.ContentStream); 1634return Response.FromValue(value, message.Response); 1637throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1683switch (message.Response.Status) 1688using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1690return Response.FromValue(value, message.Response); 1693throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1725switch (message.Response.Status) 1730using var document = JsonDocument.Parse(message.Response.ContentStream); 1732return Response.FromValue(value, message.Response); 1735throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PublicIPAddressesRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((PublicIPAddressData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((PublicIPAddressData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 662switch (message.Response.Status) 667using var document = JsonDocument.Parse(message.Response.ContentStream); 669return Response.FromValue(value, message.Response); 672throw _clientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 720return Response.FromValue(value, message.Response); 723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PublicIPPrefixesRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((PublicIPPrefixData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((PublicIPPrefixData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 662switch (message.Response.Status) 667using var document = JsonDocument.Parse(message.Response.ContentStream); 669return Response.FromValue(value, message.Response); 672throw _clientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 720return Response.FromValue(value, message.Response); 723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ResourceNavigationLinksRestOperations.cs (8)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteFilterRulesRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((RouteFilterRuleData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((RouteFilterRuleData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteFiltersRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((RouteFilterData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((RouteFilterData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 481switch (message.Response.Status) 486using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 488return Response.FromValue(value, message.Response); 491throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 557switch (message.Response.Status) 562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 564return Response.FromValue(value, message.Response); 567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 635switch (message.Response.Status) 640using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 642return Response.FromValue(value, message.Response); 645throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 677using var document = JsonDocument.Parse(message.Response.ContentStream); 679return Response.FromValue(value, message.Response); 682throw _clientDiagnostics.CreateRequestFailedException(message.Response); 718switch (message.Response.Status) 723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 725return Response.FromValue(value, message.Response); 728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RoutesRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((RouteData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((RouteData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteTablesRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((RouteTableData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((RouteTableData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 481switch (message.Response.Status) 486using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 488return Response.FromValue(value, message.Response); 491throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 557switch (message.Response.Status) 562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 564return Response.FromValue(value, message.Response); 567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 635switch (message.Response.Status) 640using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 642return Response.FromValue(value, message.Response); 645throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 677using var document = JsonDocument.Parse(message.Response.ContentStream); 679return Response.FromValue(value, message.Response); 682throw _clientDiagnostics.CreateRequestFailedException(message.Response); 718switch (message.Response.Status) 723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 725return Response.FromValue(value, message.Response); 728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SecurityPartnerProvidersRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((SecurityPartnerProviderData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((SecurityPartnerProviderData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 712switch (message.Response.Status) 717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 719return Response.FromValue(value, message.Response); 722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SecurityRulesRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((SecurityRuleData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((SecurityRuleData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceAssociationLinksRestOperations.cs (8)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceEndpointPoliciesRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((ServiceEndpointPolicyData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((ServiceEndpointPolicyData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 662switch (message.Response.Status) 667using var document = JsonDocument.Parse(message.Response.ContentStream); 669return Response.FromValue(value, message.Response); 672throw _clientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 720return Response.FromValue(value, message.Response); 723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceEndpointPolicyDefinitionsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceTagsRestOperations.cs (8)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SubnetsRestOperations.cs (50)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 199switch (message.Response.Status) 204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 206return Response.FromValue(value, message.Response); 209return Response.FromValue((SubnetData)null, message.Response); 211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254return Response.FromValue((SubnetData)null, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 323return message.Response; 325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 362switch (message.Response.Status) 366return message.Response; 368throw _clientDiagnostics.CreateRequestFailedException(message.Response); 432switch (message.Response.Status) 436return message.Response; 438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 475switch (message.Response.Status) 479return message.Response; 481throw _clientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 549return message.Response; 551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 588switch (message.Response.Status) 592return message.Response; 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 649return Response.FromValue(value, message.Response); 652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 679switch (message.Response.Status) 684using var document = JsonDocument.Parse(message.Response.ContentStream); 686return Response.FromValue(value, message.Response); 689throw _clientDiagnostics.CreateRequestFailedException(message.Response); 735switch (message.Response.Status) 740using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 742return Response.FromValue(value, message.Response); 745throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 777switch (message.Response.Status) 782using var document = JsonDocument.Parse(message.Response.ContentStream); 784return Response.FromValue(value, message.Response); 787throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsagesRestOperations.cs (16)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 171return Response.FromValue(value, message.Response); 174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 201switch (message.Response.Status) 206using var document = JsonDocument.Parse(message.Response.ContentStream); 208return Response.FromValue(value, message.Response); 211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualApplianceSitesRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((VirtualApplianceSiteData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((VirtualApplianceSiteData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualApplianceSkusRestOperations.cs (26)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 151switch (message.Response.Status) 156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 158return Response.FromValue(value, message.Response); 161return Response.FromValue((NetworkVirtualApplianceSkuData)null, message.Response); 163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 185switch (message.Response.Status) 190using var document = JsonDocument.Parse(message.Response.ContentStream); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((NetworkVirtualApplianceSkuData)null, message.Response); 197throw _clientDiagnostics.CreateRequestFailedException(message.Response); 233switch (message.Response.Status) 238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 240return Response.FromValue(value, message.Response); 243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 270using var document = JsonDocument.Parse(message.Response.ContentStream); 272return Response.FromValue(value, message.Response); 275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubBgpConnectionRestOperations.cs (22)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((BgpConnectionData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147return Response.FromValue((BgpConnectionData)null, message.Response); 149throw _clientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 216return message.Response; 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 259return message.Response; 261throw _clientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 320return message.Response; 322throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354switch (message.Response.Status) 359return message.Response; 361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubBgpConnectionsRestOperations.cs (28)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 194return message.Response; 196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 232return message.Response; 234throw _clientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 293return message.Response; 295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 331return message.Response; 333throw _clientDiagnostics.CreateRequestFailedException(message.Response); 379switch (message.Response.Status) 384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 386return Response.FromValue(value, message.Response); 389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426using var document = JsonDocument.Parse(message.Response.ContentStream); 428return Response.FromValue(value, message.Response); 431throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubIpConfigurationRestOperations.cs (38)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((HubIpConfigurationData)null, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((HubIpConfigurationData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 217return message.Response; 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 260return message.Response; 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubRouteTableV2SRestOperations.cs (38)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 217return message.Response; 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 260return message.Response; 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubsRestOperations.cs (68)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((VirtualHubData)null, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((VirtualHubData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 198return message.Response; 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 236return message.Response; 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398return message.Response; 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 432return message.Response; 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 644switch (message.Response.Status) 648return message.Response; 650throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678switch (message.Response.Status) 682return message.Response; 684throw _clientDiagnostics.CreateRequestFailedException(message.Response); 725switch (message.Response.Status) 730using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 732return Response.FromValue(value, message.Response); 735throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 767using var document = JsonDocument.Parse(message.Response.ContentStream); 769return Response.FromValue(value, message.Response); 772throw _clientDiagnostics.CreateRequestFailedException(message.Response); 808switch (message.Response.Status) 813using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 815return Response.FromValue(value, message.Response); 818throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 840switch (message.Response.Status) 845using var document = JsonDocument.Parse(message.Response.ContentStream); 847return Response.FromValue(value, message.Response); 850throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewayConnectionsRestOperations.cs (88)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response); 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 226switch (message.Response.Status) 231using var document = JsonDocument.Parse(message.Response.ContentStream); 233return Response.FromValue(value, message.Response); 236return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response); 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 285switch (message.Response.Status) 290return message.Response; 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 386return message.Response; 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 424return message.Response; 426throw _clientDiagnostics.CreateRequestFailedException(message.Response); 483switch (message.Response.Status) 487return message.Response; 489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 521switch (message.Response.Status) 525return message.Response; 527throw _clientDiagnostics.CreateRequestFailedException(message.Response); 575switch (message.Response.Status) 580using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 582return Response.FromValue(value, message.Response); 585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw _clientDiagnostics.CreateRequestFailedException(message.Response); 663switch (message.Response.Status) 668using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 670return Response.FromValue(value, message.Response); 673throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 695switch (message.Response.Status) 700using var document = JsonDocument.Parse(message.Response.ContentStream); 702return Response.FromValue(value, message.Response); 705throw _clientDiagnostics.CreateRequestFailedException(message.Response); 762switch (message.Response.Status) 766return message.Response; 768throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 800switch (message.Response.Status) 804return message.Response; 806throw _clientDiagnostics.CreateRequestFailedException(message.Response); 862switch (message.Response.Status) 866return message.Response; 868throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 896switch (message.Response.Status) 900return message.Response; 902throw _clientDiagnostics.CreateRequestFailedException(message.Response); 959switch (message.Response.Status) 963return message.Response; 965throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 997switch (message.Response.Status) 1001return message.Response; 1003throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1051switch (message.Response.Status) 1055return message.Response; 1057throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1084switch (message.Response.Status) 1088return message.Response; 1090throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1138switch (message.Response.Status) 1141return message.Response; 1143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1170switch (message.Response.Status) 1173return message.Response; 1175throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1216switch (message.Response.Status) 1221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1223return Response.FromValue(value, message.Response); 1226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1253switch (message.Response.Status) 1258using var document = JsonDocument.Parse(message.Response.ContentStream); 1260return Response.FromValue(value, message.Response); 1263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewayNatRulesRestOperations.cs (38)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 217return message.Response; 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 260return message.Response; 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewaysRestOperations.cs (160)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((VirtualNetworkGatewayData)null, message.Response); 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 226switch (message.Response.Status) 231using var document = JsonDocument.Parse(message.Response.ContentStream); 233return Response.FromValue(value, message.Response); 236return Response.FromValue((VirtualNetworkGatewayData)null, message.Response); 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 285switch (message.Response.Status) 290return message.Response; 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 386return message.Response; 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 424return message.Response; 426throw _clientDiagnostics.CreateRequestFailedException(message.Response); 467switch (message.Response.Status) 472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 474return Response.FromValue(value, message.Response); 477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 499switch (message.Response.Status) 504using var document = JsonDocument.Parse(message.Response.ContentStream); 506return Response.FromValue(value, message.Response); 509throw _clientDiagnostics.CreateRequestFailedException(message.Response); 557switch (message.Response.Status) 562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 564return Response.FromValue(value, message.Response); 567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 594switch (message.Response.Status) 599using var document = JsonDocument.Parse(message.Response.ContentStream); 601return Response.FromValue(value, message.Response); 604throw _clientDiagnostics.CreateRequestFailedException(message.Response); 657switch (message.Response.Status) 661return message.Response; 663throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 691switch (message.Response.Status) 695return message.Response; 697throw _clientDiagnostics.CreateRequestFailedException(message.Response); 745switch (message.Response.Status) 749return message.Response; 751throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 778switch (message.Response.Status) 782return message.Response; 784throw _clientDiagnostics.CreateRequestFailedException(message.Response); 841switch (message.Response.Status) 845return message.Response; 847throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 879switch (message.Response.Status) 883return message.Response; 885throw _clientDiagnostics.CreateRequestFailedException(message.Response); 942switch (message.Response.Status) 946return message.Response; 948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 980switch (message.Response.Status) 984return message.Response; 986throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1034switch (message.Response.Status) 1038return message.Response; 1040throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1067switch (message.Response.Status) 1071return message.Response; 1073throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1126switch (message.Response.Status) 1130return message.Response; 1132throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1160switch (message.Response.Status) 1164return message.Response; 1166throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1214switch (message.Response.Status) 1219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1221return Response.FromValue(value, message.Response); 1224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1251switch (message.Response.Status) 1256using var document = JsonDocument.Parse(message.Response.ContentStream); 1258return Response.FromValue(value, message.Response); 1261throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1309switch (message.Response.Status) 1313return message.Response; 1315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1342switch (message.Response.Status) 1346return message.Response; 1348throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1402switch (message.Response.Status) 1406return message.Response; 1408throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1440switch (message.Response.Status) 1444return message.Response; 1446throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1503switch (message.Response.Status) 1507return message.Response; 1509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1541switch (message.Response.Status) 1545return message.Response; 1547throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1595switch (message.Response.Status) 1598return message.Response; 1600throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1627switch (message.Response.Status) 1630return message.Response; 1632throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1689switch (message.Response.Status) 1694using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1696return Response.FromValue(value, message.Response); 1699throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1731switch (message.Response.Status) 1736using var document = JsonDocument.Parse(message.Response.ContentStream); 1738return Response.FromValue(value, message.Response); 1741throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1797switch (message.Response.Status) 1801return message.Response; 1803throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1831switch (message.Response.Status) 1835return message.Response; 1837throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1894switch (message.Response.Status) 1898return message.Response; 1900throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1932switch (message.Response.Status) 1936return message.Response; 1938throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1986switch (message.Response.Status) 1990return message.Response; 1992throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2019switch (message.Response.Status) 2023return message.Response; 2025throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2082switch (message.Response.Status) 2086return message.Response; 2088throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2120switch (message.Response.Status) 2124return message.Response; 2126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2167switch (message.Response.Status) 2172using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2174return Response.FromValue(value, message.Response); 2177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2204switch (message.Response.Status) 2209using var document = JsonDocument.Parse(message.Response.ContentStream); 2211return Response.FromValue(value, message.Response); 2214throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2260switch (message.Response.Status) 2265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2267return Response.FromValue(value, message.Response); 2270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2302switch (message.Response.Status) 2307using var document = JsonDocument.Parse(message.Response.ContentStream); 2309return Response.FromValue(value, message.Response); 2312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkPeeringsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((VirtualNetworkPeeringData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((VirtualNetworkPeeringData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 322return message.Response; 324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 362switch (message.Response.Status) 366return message.Response; 368throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 458using var document = JsonDocument.Parse(message.Response.ContentStream); 460return Response.FromValue(value, message.Response); 463throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 551switch (message.Response.Status) 556using var document = JsonDocument.Parse(message.Response.ContentStream); 558return Response.FromValue(value, message.Response); 561throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworksRestOperations.cs (86)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((VirtualNetworkData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((VirtualNetworkData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw _clientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 559return Response.FromValue(value, message.Response); 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw _clientDiagnostics.CreateRequestFailedException(message.Response); 648switch (message.Response.Status) 653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 655return Response.FromValue(value, message.Response); 658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 690switch (message.Response.Status) 695using var document = JsonDocument.Parse(message.Response.ContentStream); 697return Response.FromValue(value, message.Response); 700throw _clientDiagnostics.CreateRequestFailedException(message.Response); 748switch (message.Response.Status) 753using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 755return Response.FromValue(value, message.Response); 758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 785switch (message.Response.Status) 790using var document = JsonDocument.Parse(message.Response.ContentStream); 792return Response.FromValue(value, message.Response); 795throw _clientDiagnostics.CreateRequestFailedException(message.Response); 831switch (message.Response.Status) 836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 838return Response.FromValue(value, message.Response); 841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 863switch (message.Response.Status) 868using var document = JsonDocument.Parse(message.Response.ContentStream); 870return Response.FromValue(value, message.Response); 873throw _clientDiagnostics.CreateRequestFailedException(message.Response); 914switch (message.Response.Status) 919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 921return Response.FromValue(value, message.Response); 924throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 951switch (message.Response.Status) 956using var document = JsonDocument.Parse(message.Response.ContentStream); 958return Response.FromValue(value, message.Response); 961throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1007switch (message.Response.Status) 1012using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1014return Response.FromValue(value, message.Response); 1017throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1049switch (message.Response.Status) 1054using var document = JsonDocument.Parse(message.Response.ContentStream); 1056return Response.FromValue(value, message.Response); 1059throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkTapsRestOperations.cs (62)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 182return Response.FromValue(value, message.Response); 185return Response.FromValue((VirtualNetworkTapData)null, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((VirtualNetworkTapData)null, message.Response); 226throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 624switch (message.Response.Status) 629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 631return Response.FromValue(value, message.Response); 634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 656switch (message.Response.Status) 661using var document = JsonDocument.Parse(message.Response.ContentStream); 663return Response.FromValue(value, message.Response); 666throw _clientDiagnostics.CreateRequestFailedException(message.Response); 707switch (message.Response.Status) 712using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 714return Response.FromValue(value, message.Response); 717throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualRouterPeeringsRestOperations.cs (38)
94switch (message.Response.Status) 99return message.Response; 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204return Response.FromValue((VirtualRouterPeeringData)null, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((VirtualRouterPeeringData)null, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 317return message.Response; 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 417return Response.FromValue(value, message.Response); 420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw _clientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 510return Response.FromValue(value, message.Response); 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualRoutersRestOperations.cs (54)
87switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126return message.Response; 128throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((VirtualRouterData)null, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((VirtualRouterData)null, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw _clientDiagnostics.CreateRequestFailedException(message.Response); 373switch (message.Response.Status) 378using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 380return Response.FromValue(value, message.Response); 383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 410using var document = JsonDocument.Parse(message.Response.ContentStream); 412return Response.FromValue(value, message.Response); 415throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 481using var document = JsonDocument.Parse(message.Response.ContentStream); 483return Response.FromValue(value, message.Response); 486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response); 610switch (message.Response.Status) 615using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 617return Response.FromValue(value, message.Response); 620throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 642switch (message.Response.Status) 647using var document = JsonDocument.Parse(message.Response.ContentStream); 649return Response.FromValue(value, message.Response); 652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualWansRestOperations.cs (62)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((VirtualWANData)null, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((VirtualWANData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 198return message.Response; 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 236return message.Response; 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398return message.Response; 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 432return message.Response; 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 712switch (message.Response.Status) 717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 719return Response.FromValue(value, message.Response); 722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnConnectionsRestOperations.cs (50)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((VpnConnectionData)null, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((VpnConnectionData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 217return message.Response; 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 260return message.Response; 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360return message.Response; 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 425switch (message.Response.Status) 429return message.Response; 431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 464switch (message.Response.Status) 468return message.Response; 470throw _clientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 537return message.Response; 539throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 576return message.Response; 578throw _clientDiagnostics.CreateRequestFailedException(message.Response); 626switch (message.Response.Status) 631using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 633return Response.FromValue(value, message.Response); 636throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 663switch (message.Response.Status) 668using var document = JsonDocument.Parse(message.Response.ContentStream); 670return Response.FromValue(value, message.Response); 673throw _clientDiagnostics.CreateRequestFailedException(message.Response); 719switch (message.Response.Status) 724using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 726return Response.FromValue(value, message.Response); 729throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 761switch (message.Response.Status) 766using var document = JsonDocument.Parse(message.Response.ContentStream); 768return Response.FromValue(value, message.Response); 771throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnGatewaysRestOperations.cs (78)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((VpnGatewayData)null, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((VpnGatewayData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 198return message.Response; 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 236return message.Response; 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 336return message.Response; 338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 390return message.Response; 392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424return message.Response; 426throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 478return message.Response; 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 511return message.Response; 513throw _clientDiagnostics.CreateRequestFailedException(message.Response); 569switch (message.Response.Status) 573return message.Response; 575throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 603switch (message.Response.Status) 607return message.Response; 609throw _clientDiagnostics.CreateRequestFailedException(message.Response); 665switch (message.Response.Status) 669return message.Response; 671throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 699switch (message.Response.Status) 703return message.Response; 705throw _clientDiagnostics.CreateRequestFailedException(message.Response); 746switch (message.Response.Status) 751using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 753return Response.FromValue(value, message.Response); 756throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 778switch (message.Response.Status) 783using var document = JsonDocument.Parse(message.Response.ContentStream); 785return Response.FromValue(value, message.Response); 788throw _clientDiagnostics.CreateRequestFailedException(message.Response); 822switch (message.Response.Status) 827using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 829return Response.FromValue(value, message.Response); 832throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 849switch (message.Response.Status) 854using var document = JsonDocument.Parse(message.Response.ContentStream); 856return Response.FromValue(value, message.Response); 859throw _clientDiagnostics.CreateRequestFailedException(message.Response); 900switch (message.Response.Status) 905using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 907return Response.FromValue(value, message.Response); 910throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 937switch (message.Response.Status) 942using var document = JsonDocument.Parse(message.Response.ContentStream); 944return Response.FromValue(value, message.Response); 947throw _clientDiagnostics.CreateRequestFailedException(message.Response); 983switch (message.Response.Status) 988using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 990return Response.FromValue(value, message.Response); 993throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1015switch (message.Response.Status) 1020using var document = JsonDocument.Parse(message.Response.ContentStream); 1022return Response.FromValue(value, message.Response); 1025throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnLinkConnectionsRestOperations.cs (28)
102switch (message.Response.Status) 105return message.Response; 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 147return message.Response; 149throw _clientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 215return message.Response; 217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 254switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 322return Response.FromValue(value, message.Response); 325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367throw _clientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs (6)
86switch (message.Response.Status) 90return message.Response; 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 119switch (message.Response.Status) 123return message.Response; 125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnServerConfigurationsRestOperations.cs (62)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((VpnServerConfigurationData)null, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((VpnServerConfigurationData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 198return message.Response; 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 236return message.Response; 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398return message.Response; 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 432return message.Response; 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 712switch (message.Response.Status) 717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 719return Response.FromValue(value, message.Response); 722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSiteLinkConnectionsRestOperations.cs (10)
100switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110return Response.FromValue((VpnSiteLinkConnectionData)null, message.Response); 112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 149switch (message.Response.Status) 154using var document = JsonDocument.Parse(message.Response.ContentStream); 156return Response.FromValue(value, message.Response); 159return Response.FromValue((VpnSiteLinkConnectionData)null, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSiteLinksRestOperations.cs (26)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((VpnSiteLinkData)null, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((VpnSiteLinkData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 205return Response.FromValue(value, message.Response); 208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSitesConfigurationRestOperations.cs (6)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 138return message.Response; 140throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSitesRestOperations.cs (62)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((VpnSiteData)null, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((VpnSiteData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 198return message.Response; 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 236return message.Response; 238throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398return message.Response; 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 432return message.Response; 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 712switch (message.Response.Status) 717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 719return Response.FromValue(value, message.Response); 722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WebApplicationFirewallPoliciesRestOperations.cs (56)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 157switch (message.Response.Status) 162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 164return Response.FromValue(value, message.Response); 167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response); 253throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 285using var document = JsonDocument.Parse(message.Response.ContentStream); 287return Response.FromValue(value, message.Response); 290return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response); 292throw _clientDiagnostics.CreateRequestFailedException(message.Response); 348switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 391switch (message.Response.Status) 397using var document = JsonDocument.Parse(message.Response.ContentStream); 399return Response.FromValue(value, message.Response); 402throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454return message.Response; 456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 483switch (message.Response.Status) 488return message.Response; 490throw _clientDiagnostics.CreateRequestFailedException(message.Response); 531switch (message.Response.Status) 536using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 538return Response.FromValue(value, message.Response); 541throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 568switch (message.Response.Status) 573using var document = JsonDocument.Parse(message.Response.ContentStream); 575return Response.FromValue(value, message.Response); 578throw _clientDiagnostics.CreateRequestFailedException(message.Response); 614switch (message.Response.Status) 619using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 621return Response.FromValue(value, message.Response); 624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 646switch (message.Response.Status) 651using var document = JsonDocument.Parse(message.Response.ContentStream); 653return Response.FromValue(value, message.Response); 656throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WebCategoriesRestOperations.cs (26)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95return Response.FromValue((AzureWebCategoryData)null, message.Response); 97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120switch (message.Response.Status) 125using var document = JsonDocument.Parse(message.Response.ContentStream); 127return Response.FromValue(value, message.Response); 130return Response.FromValue((AzureWebCategoryData)null, message.Response); 132throw _clientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 193switch (message.Response.Status) 198using var document = JsonDocument.Parse(message.Response.ContentStream); 200return Response.FromValue(value, message.Response); 203throw _clientDiagnostics.CreateRequestFailedException(message.Response); 239switch (message.Response.Status) 244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 246return Response.FromValue(value, message.Response); 249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 276using var document = JsonDocument.Parse(message.Response.ContentStream); 278return Response.FromValue(value, message.Response); 281throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Resources (469)
Generated\RestOperations\ApplicationDefinitionsRestOperations.cs (38)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93return Response.FromValue((ApplicationDefinitionData)null, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132return Response.FromValue((ApplicationDefinitionData)null, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186return message.Response; 188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 220return message.Response; 222throw _clientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 282return message.Response; 284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 320return message.Response; 322throw _clientDiagnostics.CreateRequestFailedException(message.Response); 363switch (message.Response.Status) 368using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 370return Response.FromValue(value, message.Response); 373throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 395switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405throw _clientDiagnostics.CreateRequestFailedException(message.Response); 446switch (message.Response.Status) 451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 453return Response.FromValue(value, message.Response); 456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 483switch (message.Response.Status) 488using var document = JsonDocument.Parse(message.Response.ContentStream); 490return Response.FromValue(value, message.Response); 493throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationsRestOperations.cs (68)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93return Response.FromValue((ApplicationData)null, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132return Response.FromValue((ApplicationData)null, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 185return message.Response; 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 218return message.Response; 220throw _clientDiagnostics.CreateRequestFailedException(message.Response); 276switch (message.Response.Status) 280return message.Response; 282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 314switch (message.Response.Status) 318return message.Response; 320throw _clientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 413switch (message.Response.Status) 418using var document = JsonDocument.Parse(message.Response.ContentStream); 420return Response.FromValue(value, message.Response); 423throw _clientDiagnostics.CreateRequestFailedException(message.Response); 464switch (message.Response.Status) 469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 471return Response.FromValue(value, message.Response); 474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 496switch (message.Response.Status) 501using var document = JsonDocument.Parse(message.Response.ContentStream); 503return Response.FromValue(value, message.Response); 506throw _clientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 572using var document = JsonDocument.Parse(message.Response.ContentStream); 574return Response.FromValue(value, message.Response); 577throw _clientDiagnostics.CreateRequestFailedException(message.Response); 625switch (message.Response.Status) 628return message.Response; 630throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 657switch (message.Response.Status) 660return message.Response; 662throw _clientDiagnostics.CreateRequestFailedException(message.Response); 703switch (message.Response.Status) 708using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 710return Response.FromValue(value, message.Response); 713throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 740switch (message.Response.Status) 745using var document = JsonDocument.Parse(message.Response.ContentStream); 747return Response.FromValue(value, message.Response); 750throw _clientDiagnostics.CreateRequestFailedException(message.Response); 786switch (message.Response.Status) 791using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 793return Response.FromValue(value, message.Response); 796throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 818switch (message.Response.Status) 823using var document = JsonDocument.Parse(message.Response.ContentStream); 825return Response.FromValue(value, message.Response); 828throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentRestOperations.cs (24)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120switch (message.Response.Status) 125using var document = JsonDocument.Parse(message.Response.ContentStream); 127return Response.FromValue(value, message.Response); 130throw _clientDiagnostics.CreateRequestFailedException(message.Response); 176switch (message.Response.Status) 181using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 183return Response.FromValue(value, message.Response); 186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 214using var document = JsonDocument.Parse(message.Response.ContentStream); 216return Response.FromValue(value, message.Response); 219throw _clientDiagnostics.CreateRequestFailedException(message.Response); 261switch (message.Response.Status) 266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 268return Response.FromValue(value, message.Response); 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 299switch (message.Response.Status) 304using var document = JsonDocument.Parse(message.Response.ContentStream); 306return Response.FromValue(value, message.Response); 309throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentScriptsRestOperations.cs (80)
93switch (message.Response.Status) 97return message.Response; 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 135return message.Response; 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 205return Response.FromValue(value, message.Response); 208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 241using var document = JsonDocument.Parse(message.Response.ContentStream); 243return Response.FromValue(value, message.Response); 246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303return Response.FromValue((DeploymentScriptData)null, message.Response); 305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 337using var document = JsonDocument.Parse(message.Response.ContentStream); 339return Response.FromValue(value, message.Response); 342return Response.FromValue((DeploymentScriptData)null, message.Response); 344throw _clientDiagnostics.CreateRequestFailedException(message.Response); 391switch (message.Response.Status) 395return message.Response; 397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 428return message.Response; 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 464switch (message.Response.Status) 469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 471return Response.FromValue(value, message.Response); 474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 491switch (message.Response.Status) 496using var document = JsonDocument.Parse(message.Response.ContentStream); 498return Response.FromValue(value, message.Response); 501throw _clientDiagnostics.CreateRequestFailedException(message.Response); 549switch (message.Response.Status) 554using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 556return Response.FromValue(value, message.Response); 559throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 656return Response.FromValue(value, message.Response); 659return Response.FromValue((ScriptLogData)null, message.Response); 661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 689switch (message.Response.Status) 694using var document = JsonDocument.Parse(message.Response.ContentStream); 696return Response.FromValue(value, message.Response); 699return Response.FromValue((ScriptLogData)null, message.Response); 701throw _clientDiagnostics.CreateRequestFailedException(message.Response); 742switch (message.Response.Status) 747using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 749return Response.FromValue(value, message.Response); 752throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 774switch (message.Response.Status) 779using var document = JsonDocument.Parse(message.Response.ContentStream); 781return Response.FromValue(value, message.Response); 784throw _clientDiagnostics.CreateRequestFailedException(message.Response); 820switch (message.Response.Status) 825using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 827return Response.FromValue(value, message.Response); 830throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 852switch (message.Response.Status) 857using var document = JsonDocument.Parse(message.Response.ContentStream); 859return Response.FromValue(value, message.Response); 862throw _clientDiagnostics.CreateRequestFailedException(message.Response); 903switch (message.Response.Status) 908using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 910return Response.FromValue(value, message.Response); 913throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 940switch (message.Response.Status) 945using var document = JsonDocument.Parse(message.Response.ContentStream); 947return Response.FromValue(value, message.Response); 950throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentsRestOperations.cs (96)
76switch (message.Response.Status) 80return message.Response; 82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104switch (message.Response.Status) 108return message.Response; 110throw _clientDiagnostics.CreateRequestFailedException(message.Response); 150switch (message.Response.Status) 154return message.Response; 156throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 178switch (message.Response.Status) 182return message.Response; 184throw _clientDiagnostics.CreateRequestFailedException(message.Response); 233switch (message.Response.Status) 237return message.Response; 239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 270return message.Response; 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 312switch (message.Response.Status) 317using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 319return Response.FromValue(value, message.Response); 322return Response.FromValue((DeploymentData)null, message.Response); 324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 346switch (message.Response.Status) 351using var document = JsonDocument.Parse(message.Response.ContentStream); 353return Response.FromValue(value, message.Response); 356return Response.FromValue((DeploymentData)null, message.Response); 358throw _clientDiagnostics.CreateRequestFailedException(message.Response); 399switch (message.Response.Status) 402return message.Response; 404throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 429return message.Response; 431throw _clientDiagnostics.CreateRequestFailedException(message.Response); 481switch (message.Response.Status) 486return message.Response; 488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520return message.Response; 522throw _clientDiagnostics.CreateRequestFailedException(message.Response); 563switch (message.Response.Status) 568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 570return Response.FromValue(value, message.Response); 573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 595switch (message.Response.Status) 600using var document = JsonDocument.Parse(message.Response.ContentStream); 602return Response.FromValue(value, message.Response); 605throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 656return Response.FromValue(value, message.Response); 659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678switch (message.Response.Status) 683using var document = JsonDocument.Parse(message.Response.ContentStream); 685return Response.FromValue(value, message.Response); 688throw _clientDiagnostics.CreateRequestFailedException(message.Response); 737switch (message.Response.Status) 741return message.Response; 743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 770switch (message.Response.Status) 774return message.Response; 776throw _clientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 836return message.Response; 838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 874return message.Response; 876throw _clientDiagnostics.CreateRequestFailedException(message.Response); 931switch (message.Response.Status) 935return message.Response; 937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 965switch (message.Response.Status) 969return message.Response; 971throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1033switch (message.Response.Status) 1037return message.Response; 1039throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1072switch (message.Response.Status) 1076return message.Response; 1078throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1114switch (message.Response.Status) 1119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1121return Response.FromValue(value, message.Response); 1124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1141switch (message.Response.Status) 1146using var document = JsonDocument.Parse(message.Response.ContentStream); 1148return Response.FromValue(value, message.Response); 1151throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1189switch (message.Response.Status) 1194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1196return Response.FromValue(value, message.Response); 1199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1223switch (message.Response.Status) 1228using var document = JsonDocument.Parse(message.Response.ContentStream); 1230return Response.FromValue(value, message.Response); 1233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JitRequestsRestOperations.cs (46)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94return Response.FromValue((JitRequestDefinitionData)null, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 130return Response.FromValue(value, message.Response); 133return Response.FromValue((JitRequestDefinitionData)null, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 195return message.Response; 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 233return message.Response; 235throw _clientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 339using var document = JsonDocument.Parse(message.Response.ContentStream); 341return Response.FromValue(value, message.Response); 344throw _clientDiagnostics.CreateRequestFailedException(message.Response); 391switch (message.Response.Status) 395return message.Response; 397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 428return message.Response; 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 464switch (message.Response.Status) 469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 471return Response.FromValue(value, message.Response); 474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 491switch (message.Response.Status) 496using var document = JsonDocument.Parse(message.Response.ContentStream); 498return Response.FromValue(value, message.Response); 501throw _clientDiagnostics.CreateRequestFailedException(message.Response); 542switch (message.Response.Status) 547using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 549return Response.FromValue(value, message.Response); 552throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574switch (message.Response.Status) 579using var document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TemplateSpecsRestOperations.cs (64)
93switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318return Response.FromValue((TemplateSpecData)null, message.Response); 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 348switch (message.Response.Status) 353using var document = JsonDocument.Parse(message.Response.ContentStream); 355return Response.FromValue(value, message.Response); 358return Response.FromValue((TemplateSpecData)null, message.Response); 360throw _clientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 411return message.Response; 413throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 440switch (message.Response.Status) 444return message.Response; 446throw _clientDiagnostics.CreateRequestFailedException(message.Response); 485switch (message.Response.Status) 490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 492return Response.FromValue(value, message.Response); 495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 569switch (message.Response.Status) 574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 576return Response.FromValue(value, message.Response); 579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 602switch (message.Response.Status) 607using var document = JsonDocument.Parse(message.Response.ContentStream); 609return Response.FromValue(value, message.Response); 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 656return Response.FromValue(value, message.Response); 659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 682switch (message.Response.Status) 687using var document = JsonDocument.Parse(message.Response.ContentStream); 689return Response.FromValue(value, message.Response); 692throw _clientDiagnostics.CreateRequestFailedException(message.Response); 734switch (message.Response.Status) 739using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 741return Response.FromValue(value, message.Response); 744throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 772switch (message.Response.Status) 777using var document = JsonDocument.Parse(message.Response.ContentStream); 779return Response.FromValue(value, message.Response); 782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TemplateSpecVersionsRestOperations.cs (48)
100switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 154using var document = JsonDocument.Parse(message.Response.ContentStream); 156return Response.FromValue(value, message.Response); 159throw _clientDiagnostics.CreateRequestFailedException(message.Response); 227switch (message.Response.Status) 232using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 234return Response.FromValue(value, message.Response); 237throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 270switch (message.Response.Status) 275using var document = JsonDocument.Parse(message.Response.ContentStream); 277return Response.FromValue(value, message.Response); 280throw _clientDiagnostics.CreateRequestFailedException(message.Response); 334switch (message.Response.Status) 339using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 341return Response.FromValue(value, message.Response); 344return Response.FromValue((TemplateSpecVersionData)null, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 378switch (message.Response.Status) 383using var document = JsonDocument.Parse(message.Response.ContentStream); 385return Response.FromValue(value, message.Response); 388return Response.FromValue((TemplateSpecVersionData)null, message.Response); 390throw _clientDiagnostics.CreateRequestFailedException(message.Response); 444switch (message.Response.Status) 448return message.Response; 450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 486return message.Response; 488throw _clientDiagnostics.CreateRequestFailedException(message.Response); 536switch (message.Response.Status) 541using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 543return Response.FromValue(value, message.Response); 546throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 573switch (message.Response.Status) 578using var document = JsonDocument.Parse(message.Response.ContentStream); 580return Response.FromValue(value, message.Response); 583throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 671switch (message.Response.Status) 676using var document = JsonDocument.Parse(message.Response.ContentStream); 678return Response.FromValue(value, message.Response); 681throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Sql (4403)
Generated\RestOperations\BackupShortTermRetentionPoliciesRestOperations.cs (38)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((BackupShortTermRetentionPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((BackupShortTermRetentionPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 336return message.Response; 338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 380return message.Response; 382throw _clientDiagnostics.CreateRequestFailedException(message.Response); 437switch (message.Response.Status) 442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 444return Response.FromValue(value, message.Response); 447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw _clientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 587switch (message.Response.Status) 592using var document = JsonDocument.Parse(message.Response.ContentStream); 594return Response.FromValue(value, message.Response); 597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CapabilitiesRestOperations.cs (8)
82switch (message.Response.Status) 87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 89return Response.FromValue(value, message.Response); 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAdvisorsRestOperations.cs (26)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 156return Response.FromValue(value, message.Response); 159throw _clientDiagnostics.CreateRequestFailedException(message.Response); 220switch (message.Response.Status) 225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 227return Response.FromValue(value, message.Response); 230return Response.FromValue((AdvisorData)null, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 269switch (message.Response.Status) 274using var document = JsonDocument.Parse(message.Response.ContentStream); 276return Response.FromValue(value, message.Response); 279return Response.FromValue((AdvisorData)null, message.Response); 281throw _clientDiagnostics.CreateRequestFailedException(message.Response); 351switch (message.Response.Status) 356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 358return Response.FromValue(value, message.Response); 361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 403switch (message.Response.Status) 408using var document = JsonDocument.Parse(message.Response.ContentStream); 410return Response.FromValue(value, message.Response); 413throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAutomaticTuningRestOperations.cs (18)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((DatabaseAutomaticTuningData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((DatabaseAutomaticTuningData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseBlobAuditingPoliciesRestOperations.cs (34)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((DatabaseBlobAuditingPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((DatabaseBlobAuditingPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw _clientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseColumnsRestOperations.cs (42)
129switch (message.Response.Status) 134using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 136return Response.FromValue(value, message.Response); 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 176switch (message.Response.Status) 181using var document = JsonDocument.Parse(message.Response.ContentStream); 183return Response.FromValue(value, message.Response); 186throw _clientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return Response.FromValue(value, message.Response); 270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 313switch (message.Response.Status) 318using var document = JsonDocument.Parse(message.Response.ContentStream); 320return Response.FromValue(value, message.Response); 323throw _clientDiagnostics.CreateRequestFailedException(message.Response); 398switch (message.Response.Status) 403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 405return Response.FromValue(value, message.Response); 408return Response.FromValue((DatabaseColumnData)null, message.Response); 410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 462using var document = JsonDocument.Parse(message.Response.ContentStream); 464return Response.FromValue(value, message.Response); 467return Response.FromValue((DatabaseColumnData)null, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 525switch (message.Response.Status) 530using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 532return Response.FromValue(value, message.Response); 535throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 577switch (message.Response.Status) 582using var document = JsonDocument.Parse(message.Response.ContentStream); 584return Response.FromValue(value, message.Response); 587throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 656return Response.FromValue(value, message.Response); 659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 707switch (message.Response.Status) 712using var document = JsonDocument.Parse(message.Response.ContentStream); 714return Response.FromValue(value, message.Response); 717throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseExtensionsRestOperations.cs (22)
106switch (message.Response.Status) 110return message.Response; 112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 158return message.Response; 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 222return Response.FromValue(value, message.Response); 225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw _clientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 325return Response.FromValue(value, message.Response); 328throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 370using var document = JsonDocument.Parse(message.Response.ContentStream); 372return Response.FromValue(value, message.Response); 375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseRecommendedActionsRestOperations.cs (26)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 162return Response.FromValue(value, message.Response); 165throw _clientDiagnostics.CreateRequestFailedException(message.Response); 233switch (message.Response.Status) 238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((RecommendedActionData)null, message.Response); 245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 292using var document = JsonDocument.Parse(message.Response.ContentStream); 294return Response.FromValue(value, message.Response); 297return Response.FromValue((RecommendedActionData)null, message.Response); 299throw _clientDiagnostics.CreateRequestFailedException(message.Response); 376switch (message.Response.Status) 381using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 383return Response.FromValue(value, message.Response); 386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 433switch (message.Response.Status) 438using var document = JsonDocument.Parse(message.Response.ContentStream); 440return Response.FromValue(value, message.Response); 443throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseRestOperations.cs (22)
93switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 341switch (message.Response.Status) 346using var document = JsonDocument.Parse(message.Response.ContentStream); 348return Response.FromValue(value, message.Response); 351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseSchemasRestOperations.cs (26)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220return Response.FromValue((DatabaseSchemaData)null, message.Response); 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269return Response.FromValue((DatabaseSchemaData)null, message.Response); 271throw _clientDiagnostics.CreateRequestFailedException(message.Response); 323switch (message.Response.Status) 328using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 330return Response.FromValue(value, message.Response); 333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 371switch (message.Response.Status) 376using var document = JsonDocument.Parse(message.Response.ContentStream); 378return Response.FromValue(value, message.Response); 381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseSecurityAlertPoliciesRestOperations.cs (34)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((DatabaseSecurityAlertPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((DatabaseSecurityAlertPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw _clientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabasesRestOperations.cs (134)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 216return Response.FromValue(value, message.Response); 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357using var document = JsonDocument.Parse(message.Response.ContentStream); 359return Response.FromValue(value, message.Response); 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426return Response.FromValue((SqlDatabaseData)null, message.Response); 428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 460switch (message.Response.Status) 465using var document = JsonDocument.Parse(message.Response.ContentStream); 467return Response.FromValue(value, message.Response); 470return Response.FromValue((SqlDatabaseData)null, message.Response); 472throw _clientDiagnostics.CreateRequestFailedException(message.Response); 535switch (message.Response.Status) 540return message.Response; 542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 579switch (message.Response.Status) 584return message.Response; 586throw _clientDiagnostics.CreateRequestFailedException(message.Response); 639switch (message.Response.Status) 644return message.Response; 646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678switch (message.Response.Status) 683return message.Response; 685throw _clientDiagnostics.CreateRequestFailedException(message.Response); 748switch (message.Response.Status) 752return message.Response; 754throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 791switch (message.Response.Status) 795return message.Response; 797throw _clientDiagnostics.CreateRequestFailedException(message.Response); 852switch (message.Response.Status) 857using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 859return Response.FromValue(value, message.Response); 862throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 894switch (message.Response.Status) 899using var document = JsonDocument.Parse(message.Response.ContentStream); 901return Response.FromValue(value, message.Response); 904throw _clientDiagnostics.CreateRequestFailedException(message.Response); 963switch (message.Response.Status) 967return message.Response; 969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1002switch (message.Response.Status) 1006return message.Response; 1008throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1056switch (message.Response.Status) 1061using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1063return Response.FromValue(value, message.Response); 1066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1093switch (message.Response.Status) 1098using var document = JsonDocument.Parse(message.Response.ContentStream); 1100return Response.FromValue(value, message.Response); 1103throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1158switch (message.Response.Status) 1162return message.Response; 1164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1196switch (message.Response.Status) 1200return message.Response; 1202throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1257switch (message.Response.Status) 1261return message.Response; 1263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1295switch (message.Response.Status) 1299return message.Response; 1301throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1355switch (message.Response.Status) 1359return message.Response; 1361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1393switch (message.Response.Status) 1397return message.Response; 1399throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1462switch (message.Response.Status) 1465return message.Response; 1467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1504switch (message.Response.Status) 1507return message.Response; 1509throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1573switch (message.Response.Status) 1577return message.Response; 1579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1616switch (message.Response.Status) 1620return message.Response; 1622throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1686switch (message.Response.Status) 1690return message.Response; 1692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1729switch (message.Response.Status) 1733return message.Response; 1735throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1782switch (message.Response.Status) 1787using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1789return Response.FromValue(value, message.Response); 1792throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1825switch (message.Response.Status) 1830using var document = JsonDocument.Parse(message.Response.ContentStream); 1832return Response.FromValue(value, message.Response); 1835throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1886switch (message.Response.Status) 1891using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1893return Response.FromValue(value, message.Response); 1896throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1933switch (message.Response.Status) 1938using var document = JsonDocument.Parse(message.Response.ContentStream); 1940return Response.FromValue(value, message.Response); 1943throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1989switch (message.Response.Status) 1994using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1996return Response.FromValue(value, message.Response); 1999throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2031switch (message.Response.Status) 2036using var document = JsonDocument.Parse(message.Response.ContentStream); 2038return Response.FromValue(value, message.Response); 2041throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseTablesRestOperations.cs (26)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 229switch (message.Response.Status) 234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((DatabaseTableData)null, message.Response); 241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 283switch (message.Response.Status) 288using var document = JsonDocument.Parse(message.Response.ContentStream); 290return Response.FromValue(value, message.Response); 293return Response.FromValue((DatabaseTableData)null, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 359return Response.FromValue(value, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 410using var document = JsonDocument.Parse(message.Response.ContentStream); 412return Response.FromValue(value, message.Response); 415throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseUsagesRestOperations.cs (16)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs (24)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 115throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 159using var document = JsonDocument.Parse(message.Response.ContentStream); 161return Response.FromValue(value, message.Response); 164return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 166throw _clientDiagnostics.CreateRequestFailedException(message.Response); 242switch (message.Response.Status) 247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 249return Response.FromValue(value, message.Response); 252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 296switch (message.Response.Status) 301using var document = JsonDocument.Parse(message.Response.ContentStream); 303return Response.FromValue(value, message.Response); 306throw _clientDiagnostics.CreateRequestFailedException(message.Response); 372switch (message.Response.Status) 375return message.Response; 377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 416switch (message.Response.Status) 419return message.Response; 421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseVulnerabilityAssessmentScansRestOperations.cs (40)
100switch (message.Response.Status) 104return message.Response; 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 148return message.Response; 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response); 325switch (message.Response.Status) 330using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 332return Response.FromValue(value, message.Response); 335return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 337throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 375switch (message.Response.Status) 380using var document = JsonDocument.Parse(message.Response.ContentStream); 382return Response.FromValue(value, message.Response); 385return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 387throw _clientDiagnostics.CreateRequestFailedException(message.Response); 452switch (message.Response.Status) 458using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 460return Response.FromValue(value, message.Response); 463throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 564switch (message.Response.Status) 569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 571return Response.FromValue(value, message.Response); 574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseVulnerabilityAssessmentsRestOperations.cs (40)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 335return message.Response; 337throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 370switch (message.Response.Status) 373return message.Response; 375throw _clientDiagnostics.CreateRequestFailedException(message.Response); 430switch (message.Response.Status) 435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 437return Response.FromValue(value, message.Response); 440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 472switch (message.Response.Status) 477using var document = JsonDocument.Parse(message.Response.ContentStream); 479return Response.FromValue(value, message.Response); 482throw _clientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 540return Response.FromValue(value, message.Response); 543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DataMaskingPoliciesRestOperations.cs (18)
100switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 147switch (message.Response.Status) 152using var document = JsonDocument.Parse(message.Response.ContentStream); 154return Response.FromValue(value, message.Response); 157throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 220return Response.FromValue(value, message.Response); 223return Response.FromValue((DataMaskingPolicyData)null, message.Response); 225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267return Response.FromValue((DataMaskingPolicyData)null, message.Response); 269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DataMaskingRulesRestOperations.cs (16)
108switch (message.Response.Status) 114using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw _clientDiagnostics.CreateRequestFailedException(message.Response); 229switch (message.Response.Status) 234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 236return Response.FromValue(value, message.Response); 239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 276using var document = JsonDocument.Parse(message.Response.ContentStream); 278return Response.FromValue(value, message.Response); 281throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DataWarehouseUserActivitiesRestOperations.cs (26)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((DataWarehouseUserActivitiesData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((DataWarehouseUserActivitiesData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 252using var document = JsonDocument.Parse(message.Response.ContentStream); 254return Response.FromValue(value, message.Response); 257throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360using var document = JsonDocument.Parse(message.Response.ContentStream); 362return Response.FromValue(value, message.Response); 365throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeletedServersRestOperations.cs (48)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164return Response.FromValue((DeletedServerData)null, message.Response); 166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 193switch (message.Response.Status) 198using var document = JsonDocument.Parse(message.Response.ContentStream); 200return Response.FromValue(value, message.Response); 203return Response.FromValue((DeletedServerData)null, message.Response); 205throw _clientDiagnostics.CreateRequestFailedException(message.Response); 246switch (message.Response.Status) 251using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 253return Response.FromValue(value, message.Response); 256throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278switch (message.Response.Status) 283using var document = JsonDocument.Parse(message.Response.ContentStream); 285return Response.FromValue(value, message.Response); 288throw _clientDiagnostics.CreateRequestFailedException(message.Response); 336switch (message.Response.Status) 340return message.Response; 342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369switch (message.Response.Status) 373return message.Response; 375throw _clientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 418return Response.FromValue(value, message.Response); 421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 443switch (message.Response.Status) 448using var document = JsonDocument.Parse(message.Response.ContentStream); 450return Response.FromValue(value, message.Response); 453throw _clientDiagnostics.CreateRequestFailedException(message.Response); 494switch (message.Response.Status) 499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 501return Response.FromValue(value, message.Response); 504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 531switch (message.Response.Status) 536using var document = JsonDocument.Parse(message.Response.ContentStream); 538return Response.FromValue(value, message.Response); 541throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolActivitiesRestOperations.cs (8)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolDatabaseActivitiesRestOperations.cs (8)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolRestOperations.cs (22)
93switch (message.Response.Status) 96return message.Response; 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 134return message.Response; 136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 341switch (message.Response.Status) 346using var document = JsonDocument.Parse(message.Response.ContentStream); 348return Response.FromValue(value, message.Response); 351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolsRestOperations.cs (66)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 216return Response.FromValue(value, message.Response); 219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357using var document = JsonDocument.Parse(message.Response.ContentStream); 359return Response.FromValue(value, message.Response); 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426return Response.FromValue((ElasticPoolData)null, message.Response); 428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 460switch (message.Response.Status) 465using var document = JsonDocument.Parse(message.Response.ContentStream); 467return Response.FromValue(value, message.Response); 470return Response.FromValue((ElasticPoolData)null, message.Response); 472throw _clientDiagnostics.CreateRequestFailedException(message.Response); 535switch (message.Response.Status) 540return message.Response; 542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 579switch (message.Response.Status) 584return message.Response; 586throw _clientDiagnostics.CreateRequestFailedException(message.Response); 639switch (message.Response.Status) 644return message.Response; 646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678switch (message.Response.Status) 683return message.Response; 685throw _clientDiagnostics.CreateRequestFailedException(message.Response); 748switch (message.Response.Status) 752return message.Response; 754throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 791switch (message.Response.Status) 795return message.Response; 797throw _clientDiagnostics.CreateRequestFailedException(message.Response); 851switch (message.Response.Status) 855return message.Response; 857throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 889switch (message.Response.Status) 893return message.Response; 895throw _clientDiagnostics.CreateRequestFailedException(message.Response); 942switch (message.Response.Status) 947using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 949return Response.FromValue(value, message.Response); 952throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 985switch (message.Response.Status) 990using var document = JsonDocument.Parse(message.Response.ContentStream); 992return Response.FromValue(value, message.Response); 995throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EncryptionProtectorsRestOperations.cs (38)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191return Response.FromValue((EncryptionProtectorData)null, message.Response); 193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226using var document = JsonDocument.Parse(message.Response.ContentStream); 228return Response.FromValue(value, message.Response); 231return Response.FromValue((EncryptionProtectorData)null, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response); 292switch (message.Response.Status) 296return message.Response; 298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 391return message.Response; 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 425return message.Response; 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 473switch (message.Response.Status) 478using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 480return Response.FromValue(value, message.Response); 483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs (34)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((ExtendedDatabaseBlobAuditingPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ExtendedDatabaseBlobAuditingPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw _clientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExtendedServerBlobAuditingPoliciesRestOperations.cs (32)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ExtendedServerBlobAuditingPolicyData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ExtendedServerBlobAuditingPolicyData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 201return message.Response; 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425switch (message.Response.Status) 430using var document = JsonDocument.Parse(message.Response.ContentStream); 432return Response.FromValue(value, message.Response); 435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FailoverGroupsRestOperations.cs (56)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((FailoverGroupData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((FailoverGroupData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 426return message.Response; 428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 469return message.Response; 471throw _clientDiagnostics.CreateRequestFailedException(message.Response); 519switch (message.Response.Status) 524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 526return Response.FromValue(value, message.Response); 529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 556switch (message.Response.Status) 561using var document = JsonDocument.Parse(message.Response.ContentStream); 563return Response.FromValue(value, message.Response); 566throw _clientDiagnostics.CreateRequestFailedException(message.Response); 621switch (message.Response.Status) 625return message.Response; 627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 659switch (message.Response.Status) 663return message.Response; 665throw _clientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 724return message.Response; 726throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 758switch (message.Response.Status) 762return message.Response; 764throw _clientDiagnostics.CreateRequestFailedException(message.Response); 810switch (message.Response.Status) 815using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 817return Response.FromValue(value, message.Response); 820throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 852switch (message.Response.Status) 857using var document = JsonDocument.Parse(message.Response.ContentStream); 859return Response.FromValue(value, message.Response); 862throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallRulesRestOperations.cs (50)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((FirewallRuleData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((FirewallRuleData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 263using var document = JsonDocument.Parse(message.Response.ContentStream); 265return Response.FromValue(value, message.Response); 268throw _clientDiagnostics.CreateRequestFailedException(message.Response); 321switch (message.Response.Status) 325return message.Response; 327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 363return message.Response; 365throw _clientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw _clientDiagnostics.CreateRequestFailedException(message.Response); 517switch (message.Response.Status) 522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 524return Response.FromValue(value, message.Response); 527return Response.FromValue((FirewallRuleData)null, message.Response); 529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 561switch (message.Response.Status) 566using var document = JsonDocument.Parse(message.Response.ContentStream); 568return Response.FromValue(value, message.Response); 571return Response.FromValue((FirewallRuleData)null, message.Response); 573throw _clientDiagnostics.CreateRequestFailedException(message.Response); 619switch (message.Response.Status) 624using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 626return Response.FromValue(value, message.Response); 629throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 661switch (message.Response.Status) 666using var document = JsonDocument.Parse(message.Response.ContentStream); 668return Response.FromValue(value, message.Response); 671throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GeoBackupPoliciesRestOperations.cs (26)
102switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229return Response.FromValue((GeoBackupPolicyData)null, message.Response); 231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274return Response.FromValue((GeoBackupPolicyData)null, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InstanceFailoverGroupsRestOperations.cs (50)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((InstanceFailoverGroupData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((InstanceFailoverGroupData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 444switch (message.Response.Status) 449using var document = JsonDocument.Parse(message.Response.ContentStream); 451return Response.FromValue(value, message.Response); 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 513return message.Response; 515throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 551return message.Response; 553throw _clientDiagnostics.CreateRequestFailedException(message.Response); 608switch (message.Response.Status) 612return message.Response; 614throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 646switch (message.Response.Status) 650return message.Response; 652throw _clientDiagnostics.CreateRequestFailedException(message.Response); 698switch (message.Response.Status) 703using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 705return Response.FromValue(value, message.Response); 708throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 740switch (message.Response.Status) 745using var document = JsonDocument.Parse(message.Response.ContentStream); 747return Response.FromValue(value, message.Response); 750throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InstancePoolsRestOperations.cs (60)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93return Response.FromValue((InstancePoolData)null, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132return Response.FromValue((InstancePoolData)null, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 195return message.Response; 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234return message.Response; 236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 287return message.Response; 289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 321return message.Response; 323throw _clientDiagnostics.CreateRequestFailedException(message.Response); 379switch (message.Response.Status) 383return message.Response; 385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 421return message.Response; 423throw _clientDiagnostics.CreateRequestFailedException(message.Response); 464switch (message.Response.Status) 469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 471return Response.FromValue(value, message.Response); 474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 496switch (message.Response.Status) 501using var document = JsonDocument.Parse(message.Response.ContentStream); 503return Response.FromValue(value, message.Response); 506throw _clientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 572using var document = JsonDocument.Parse(message.Response.ContentStream); 574return Response.FromValue(value, message.Response); 577throw _clientDiagnostics.CreateRequestFailedException(message.Response); 618switch (message.Response.Status) 623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 625return Response.FromValue(value, message.Response); 628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 655switch (message.Response.Status) 660using var document = JsonDocument.Parse(message.Response.ContentStream); 662return Response.FromValue(value, message.Response); 665throw _clientDiagnostics.CreateRequestFailedException(message.Response); 701switch (message.Response.Status) 706using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 708return Response.FromValue(value, message.Response); 711throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 733switch (message.Response.Status) 738using var document = JsonDocument.Parse(message.Response.ContentStream); 740return Response.FromValue(value, message.Response); 743throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobAgentsRestOperations.cs (44)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((JobAgentData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((JobAgentData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 309return message.Response; 311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 348switch (message.Response.Status) 353return message.Response; 355throw _clientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 413return message.Response; 415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 517switch (message.Response.Status) 521return message.Response; 523throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 560switch (message.Response.Status) 564return message.Response; 566throw _clientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 654switch (message.Response.Status) 659using var document = JsonDocument.Parse(message.Response.ContentStream); 661return Response.FromValue(value, message.Response); 664throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobCredentialsRestOperations.cs (40)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response); 204switch (message.Response.Status) 209using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 211return Response.FromValue(value, message.Response); 214return Response.FromValue((JobCredentialData)null, message.Response); 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258using var document = JsonDocument.Parse(message.Response.ContentStream); 260return Response.FromValue(value, message.Response); 263return Response.FromValue((JobCredentialData)null, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 335switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return Response.FromValue(value, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw _clientDiagnostics.CreateRequestFailedException(message.Response); 459switch (message.Response.Status) 463return message.Response; 465throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 506return message.Response; 508throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobExecutionsRestOperations.cs (60)
126switch (message.Response.Status) 131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 133return Response.FromValue(value, message.Response); 136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 249switch (message.Response.Status) 252return message.Response; 254throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 292switch (message.Response.Status) 295return message.Response; 297throw _clientDiagnostics.CreateRequestFailedException(message.Response); 359switch (message.Response.Status) 363return message.Response; 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 402switch (message.Response.Status) 406return message.Response; 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 559switch (message.Response.Status) 564using var document = JsonDocument.Parse(message.Response.ContentStream); 566return Response.FromValue(value, message.Response); 569throw _clientDiagnostics.CreateRequestFailedException(message.Response); 633switch (message.Response.Status) 638using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 640return Response.FromValue(value, message.Response); 643return Response.FromValue((JobExecutionData)null, message.Response); 645throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 683switch (message.Response.Status) 688using var document = JsonDocument.Parse(message.Response.ContentStream); 690return Response.FromValue(value, message.Response); 693return Response.FromValue((JobExecutionData)null, message.Response); 695throw _clientDiagnostics.CreateRequestFailedException(message.Response); 759switch (message.Response.Status) 764return message.Response; 766throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 804switch (message.Response.Status) 809return message.Response; 811throw _clientDiagnostics.CreateRequestFailedException(message.Response); 869switch (message.Response.Status) 874using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 876return Response.FromValue(value, message.Response); 879throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 923switch (message.Response.Status) 928using var document = JsonDocument.Parse(message.Response.ContentStream); 930return Response.FromValue(value, message.Response); 933throw _clientDiagnostics.CreateRequestFailedException(message.Response); 996switch (message.Response.Status) 1001using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1003return Response.FromValue(value, message.Response); 1006throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1055switch (message.Response.Status) 1060using var document = JsonDocument.Parse(message.Response.ContentStream); 1062return Response.FromValue(value, message.Response); 1065throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobsRestOperations.cs (40)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response); 204switch (message.Response.Status) 209using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 211return Response.FromValue(value, message.Response); 214return Response.FromValue((SqlJobData)null, message.Response); 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258using var document = JsonDocument.Parse(message.Response.ContentStream); 260return Response.FromValue(value, message.Response); 263return Response.FromValue((SqlJobData)null, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 335switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return Response.FromValue(value, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw _clientDiagnostics.CreateRequestFailedException(message.Response); 459switch (message.Response.Status) 463return message.Response; 465throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 506return message.Response; 508throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobStepExecutionsRestOperations.cs (26)
136switch (message.Response.Status) 141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 143return Response.FromValue(value, message.Response); 146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 196using var document = JsonDocument.Parse(message.Response.ContentStream); 198return Response.FromValue(value, message.Response); 201throw _clientDiagnostics.CreateRequestFailedException(message.Response); 272switch (message.Response.Status) 277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 279return Response.FromValue(value, message.Response); 282return Response.FromValue((JobExecutionData)null, message.Response); 284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337return Response.FromValue((JobExecutionData)null, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 403switch (message.Response.Status) 408using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 410return Response.FromValue(value, message.Response); 413throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468using var document = JsonDocument.Parse(message.Response.ContentStream); 470return Response.FromValue(value, message.Response); 473throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobStepsRestOperations.cs (66)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 149switch (message.Response.Status) 154using var document = JsonDocument.Parse(message.Response.ContentStream); 156return Response.FromValue(value, message.Response); 159throw _clientDiagnostics.CreateRequestFailedException(message.Response); 230switch (message.Response.Status) 235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 237return Response.FromValue(value, message.Response); 240return Response.FromValue((JobStepData)null, message.Response); 242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 285switch (message.Response.Status) 290using var document = JsonDocument.Parse(message.Response.ContentStream); 292return Response.FromValue(value, message.Response); 295return Response.FromValue((JobStepData)null, message.Response); 297throw _clientDiagnostics.CreateRequestFailedException(message.Response); 359switch (message.Response.Status) 364using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 366return Response.FromValue(value, message.Response); 369throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 406switch (message.Response.Status) 411using var document = JsonDocument.Parse(message.Response.ContentStream); 413return Response.FromValue(value, message.Response); 416throw _clientDiagnostics.CreateRequestFailedException(message.Response); 484switch (message.Response.Status) 489using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 491return Response.FromValue(value, message.Response); 494return Response.FromValue((JobStepData)null, message.Response); 496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 538switch (message.Response.Status) 543using var document = JsonDocument.Parse(message.Response.ContentStream); 545return Response.FromValue(value, message.Response); 548return Response.FromValue((JobStepData)null, message.Response); 550throw _clientDiagnostics.CreateRequestFailedException(message.Response); 627switch (message.Response.Status) 633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 635return Response.FromValue(value, message.Response); 638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 685switch (message.Response.Status) 691using var document = JsonDocument.Parse(message.Response.ContentStream); 693return Response.FromValue(value, message.Response); 696throw _clientDiagnostics.CreateRequestFailedException(message.Response); 763switch (message.Response.Status) 767return message.Response; 769throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 811switch (message.Response.Status) 815return message.Response; 817throw _clientDiagnostics.CreateRequestFailedException(message.Response); 874switch (message.Response.Status) 879using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 881return Response.FromValue(value, message.Response); 884throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 927switch (message.Response.Status) 932using var document = JsonDocument.Parse(message.Response.ContentStream); 934return Response.FromValue(value, message.Response); 937throw _clientDiagnostics.CreateRequestFailedException(message.Response); 993switch (message.Response.Status) 998using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1000return Response.FromValue(value, message.Response); 1003throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1045switch (message.Response.Status) 1050using var document = JsonDocument.Parse(message.Response.ContentStream); 1052return Response.FromValue(value, message.Response); 1055throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobTargetExecutionsRestOperations.cs (42)
136switch (message.Response.Status) 141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 143return Response.FromValue(value, message.Response); 146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 196using var document = JsonDocument.Parse(message.Response.ContentStream); 198return Response.FromValue(value, message.Response); 201throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 368switch (message.Response.Status) 373using var document = JsonDocument.Parse(message.Response.ContentStream); 375return Response.FromValue(value, message.Response); 378throw _clientDiagnostics.CreateRequestFailedException(message.Response); 452switch (message.Response.Status) 457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 459return Response.FromValue(value, message.Response); 462return Response.FromValue((JobExecutionData)null, message.Response); 464throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 513using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518return Response.FromValue((JobExecutionData)null, message.Response); 520throw _clientDiagnostics.CreateRequestFailedException(message.Response); 584switch (message.Response.Status) 589using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 591return Response.FromValue(value, message.Response); 594throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644switch (message.Response.Status) 649using var document = JsonDocument.Parse(message.Response.ContentStream); 651return Response.FromValue(value, message.Response); 654throw _clientDiagnostics.CreateRequestFailedException(message.Response); 723switch (message.Response.Status) 728using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 730return Response.FromValue(value, message.Response); 733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 788switch (message.Response.Status) 793using var document = JsonDocument.Parse(message.Response.ContentStream); 795return Response.FromValue(value, message.Response); 798throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobTargetGroupsRestOperations.cs (40)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response); 204switch (message.Response.Status) 209using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 211return Response.FromValue(value, message.Response); 214return Response.FromValue((JobTargetGroupData)null, message.Response); 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258using var document = JsonDocument.Parse(message.Response.ContentStream); 260return Response.FromValue(value, message.Response); 263return Response.FromValue((JobTargetGroupData)null, message.Response); 265throw _clientDiagnostics.CreateRequestFailedException(message.Response); 335switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return Response.FromValue(value, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw _clientDiagnostics.CreateRequestFailedException(message.Response); 459switch (message.Response.Status) 463return message.Response; 465throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 506return message.Response; 508throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobVersionsRestOperations.cs (26)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229return Response.FromValue((JobVersionData)null, message.Response); 231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 269switch (message.Response.Status) 274using var document = JsonDocument.Parse(message.Response.ContentStream); 276return Response.FromValue(value, message.Response); 279return Response.FromValue((JobVersionData)null, message.Response); 281throw _clientDiagnostics.CreateRequestFailedException(message.Response); 337switch (message.Response.Status) 342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 344return Response.FromValue(value, message.Response); 347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 389switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LedgerDigestUploadsRestOperations.cs (38)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((LedgerDigestUploadsData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((LedgerDigestUploadsData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw _clientDiagnostics.CreateRequestFailedException(message.Response); 321switch (message.Response.Status) 326using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 328return Response.FromValue(value, message.Response); 331throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 363switch (message.Response.Status) 368using var document = JsonDocument.Parse(message.Response.ContentStream); 370return Response.FromValue(value, message.Response); 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 431switch (message.Response.Status) 435return message.Response; 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 474return message.Response; 476throw _clientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574switch (message.Response.Status) 579using var document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LongTermRetentionBackupsRestOperations.cs (152)
107switch (message.Response.Status) 111return message.Response; 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 155switch (message.Response.Status) 159return message.Response; 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 232switch (message.Response.Status) 236return message.Response; 238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 284return message.Response; 286throw _clientDiagnostics.CreateRequestFailedException(message.Response); 347switch (message.Response.Status) 352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 354return Response.FromValue(value, message.Response); 357return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 396switch (message.Response.Status) 401using var document = JsonDocument.Parse(message.Response.ContentStream); 403return Response.FromValue(value, message.Response); 406return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 472return message.Response; 474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 511switch (message.Response.Status) 515return message.Response; 517throw _clientDiagnostics.CreateRequestFailedException(message.Response); 582switch (message.Response.Status) 587using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 589return Response.FromValue(value, message.Response); 592throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 626switch (message.Response.Status) 631using var document = JsonDocument.Parse(message.Response.ContentStream); 633return Response.FromValue(value, message.Response); 636throw _clientDiagnostics.CreateRequestFailedException(message.Response); 687switch (message.Response.Status) 692using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 694return Response.FromValue(value, message.Response); 697throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 721switch (message.Response.Status) 726using var document = JsonDocument.Parse(message.Response.ContentStream); 728return Response.FromValue(value, message.Response); 731throw _clientDiagnostics.CreateRequestFailedException(message.Response); 789switch (message.Response.Status) 794using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 796return Response.FromValue(value, message.Response); 799throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 828switch (message.Response.Status) 833using var document = JsonDocument.Parse(message.Response.ContentStream); 835return Response.FromValue(value, message.Response); 838throw _clientDiagnostics.CreateRequestFailedException(message.Response); 916switch (message.Response.Status) 920return message.Response; 922throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 969switch (message.Response.Status) 973return message.Response; 975throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1053switch (message.Response.Status) 1057return message.Response; 1059throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1106switch (message.Response.Status) 1110return message.Response; 1112throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1180switch (message.Response.Status) 1185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1187return Response.FromValue(value, message.Response); 1190return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 1192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1234switch (message.Response.Status) 1239using var document = JsonDocument.Parse(message.Response.ContentStream); 1241return Response.FromValue(value, message.Response); 1244return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 1246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1313switch (message.Response.Status) 1317return message.Response; 1319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1361switch (message.Response.Status) 1365return message.Response; 1367throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1439switch (message.Response.Status) 1444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1446return Response.FromValue(value, message.Response); 1449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1488switch (message.Response.Status) 1493using var document = JsonDocument.Parse(message.Response.ContentStream); 1495return Response.FromValue(value, message.Response); 1498throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1556switch (message.Response.Status) 1561using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1563return Response.FromValue(value, message.Response); 1566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1595switch (message.Response.Status) 1600using var document = JsonDocument.Parse(message.Response.ContentStream); 1602return Response.FromValue(value, message.Response); 1605throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1670switch (message.Response.Status) 1675using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1677return Response.FromValue(value, message.Response); 1680throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1714switch (message.Response.Status) 1719using var document = JsonDocument.Parse(message.Response.ContentStream); 1721return Response.FromValue(value, message.Response); 1724throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1777switch (message.Response.Status) 1782using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1784return Response.FromValue(value, message.Response); 1787throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1826switch (message.Response.Status) 1831using var document = JsonDocument.Parse(message.Response.ContentStream); 1833return Response.FromValue(value, message.Response); 1836throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1879switch (message.Response.Status) 1884using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1886return Response.FromValue(value, message.Response); 1889throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1918switch (message.Response.Status) 1923using var document = JsonDocument.Parse(message.Response.ContentStream); 1925return Response.FromValue(value, message.Response); 1928throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1976switch (message.Response.Status) 1981using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1983return Response.FromValue(value, message.Response); 1986throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2020switch (message.Response.Status) 2025using var document = JsonDocument.Parse(message.Response.ContentStream); 2027return Response.FromValue(value, message.Response); 2030throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2088switch (message.Response.Status) 2093using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2095return Response.FromValue(value, message.Response); 2098throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2142switch (message.Response.Status) 2147using var document = JsonDocument.Parse(message.Response.ContentStream); 2149return Response.FromValue(value, message.Response); 2152throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2200switch (message.Response.Status) 2205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2207return Response.FromValue(value, message.Response); 2210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2244switch (message.Response.Status) 2249using var document = JsonDocument.Parse(message.Response.ContentStream); 2251return Response.FromValue(value, message.Response); 2254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2307switch (message.Response.Status) 2312using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2314return Response.FromValue(value, message.Response); 2317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2356switch (message.Response.Status) 2361using var document = JsonDocument.Parse(message.Response.ContentStream); 2363return Response.FromValue(value, message.Response); 2366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LongTermRetentionManagedInstanceBackupsRestOperations.cs (128)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 218switch (message.Response.Status) 222return message.Response; 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 261switch (message.Response.Status) 265return message.Response; 267throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 339return Response.FromValue(value, message.Response); 342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 381using var document = JsonDocument.Parse(message.Response.ContentStream); 383return Response.FromValue(value, message.Response); 386throw _clientDiagnostics.CreateRequestFailedException(message.Response); 444switch (message.Response.Status) 449using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 451return Response.FromValue(value, message.Response); 454throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 483switch (message.Response.Status) 488using var document = JsonDocument.Parse(message.Response.ContentStream); 490return Response.FromValue(value, message.Response); 493throw _clientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw _clientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 663return Response.FromValue(value, message.Response); 666return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 668throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 710switch (message.Response.Status) 715using var document = JsonDocument.Parse(message.Response.ContentStream); 717return Response.FromValue(value, message.Response); 720return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 722throw _clientDiagnostics.CreateRequestFailedException(message.Response); 789switch (message.Response.Status) 793return message.Response; 795throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 837switch (message.Response.Status) 841return message.Response; 843throw _clientDiagnostics.CreateRequestFailedException(message.Response); 915switch (message.Response.Status) 920using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 922return Response.FromValue(value, message.Response); 925throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 964switch (message.Response.Status) 969using var document = JsonDocument.Parse(message.Response.ContentStream); 971return Response.FromValue(value, message.Response); 974throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1039switch (message.Response.Status) 1044using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1046return Response.FromValue(value, message.Response); 1049throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1083switch (message.Response.Status) 1088using var document = JsonDocument.Parse(message.Response.ContentStream); 1090return Response.FromValue(value, message.Response); 1093throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1151switch (message.Response.Status) 1156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1158return Response.FromValue(value, message.Response); 1161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1190switch (message.Response.Status) 1195using var document = JsonDocument.Parse(message.Response.ContentStream); 1197return Response.FromValue(value, message.Response); 1200throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1253switch (message.Response.Status) 1258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1260return Response.FromValue(value, message.Response); 1263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1302switch (message.Response.Status) 1307using var document = JsonDocument.Parse(message.Response.ContentStream); 1309return Response.FromValue(value, message.Response); 1312throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1360switch (message.Response.Status) 1365using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1367return Response.FromValue(value, message.Response); 1370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1404switch (message.Response.Status) 1409using var document = JsonDocument.Parse(message.Response.ContentStream); 1411return Response.FromValue(value, message.Response); 1414throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1457switch (message.Response.Status) 1462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1464return Response.FromValue(value, message.Response); 1467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1496switch (message.Response.Status) 1501using var document = JsonDocument.Parse(message.Response.ContentStream); 1503return Response.FromValue(value, message.Response); 1506throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1564switch (message.Response.Status) 1569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1571return Response.FromValue(value, message.Response); 1574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1618switch (message.Response.Status) 1623using var document = JsonDocument.Parse(message.Response.ContentStream); 1625return Response.FromValue(value, message.Response); 1628throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1681switch (message.Response.Status) 1686using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1688return Response.FromValue(value, message.Response); 1691throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1730switch (message.Response.Status) 1735using var document = JsonDocument.Parse(message.Response.ContentStream); 1737return Response.FromValue(value, message.Response); 1740throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1788switch (message.Response.Status) 1793using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1795return Response.FromValue(value, message.Response); 1798throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1832switch (message.Response.Status) 1837using var document = JsonDocument.Parse(message.Response.ContentStream); 1839return Response.FromValue(value, message.Response); 1842throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LongTermRetentionPoliciesRestOperations.cs (32)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((LongTermRetentionPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((LongTermRetentionPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw _clientDiagnostics.CreateRequestFailedException(message.Response); 321switch (message.Response.Status) 326using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 328return Response.FromValue(value, message.Response); 331throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 363switch (message.Response.Status) 368using var document = JsonDocument.Parse(message.Response.ContentStream); 370return Response.FromValue(value, message.Response); 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 424switch (message.Response.Status) 429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 431return Response.FromValue(value, message.Response); 434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471switch (message.Response.Status) 476using var document = JsonDocument.Parse(message.Response.ContentStream); 478return Response.FromValue(value, message.Response); 481throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MaintenanceWindowOptionsRestOperations.cs (10)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((MaintenanceWindowOptionsData)null, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155return Response.FromValue((MaintenanceWindowOptionsData)null, message.Response); 157throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MaintenanceWindowsRestOperations.cs (16)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((MaintenanceWindowsData)null, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155return Response.FromValue((MaintenanceWindowsData)null, message.Response); 157throw _clientDiagnostics.CreateRequestFailedException(message.Response); 226switch (message.Response.Status) 229return message.Response; 231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 273switch (message.Response.Status) 276return message.Response; 278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedBackupShortTermRetentionPoliciesRestOperations.cs (38)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 336return message.Response; 338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 380return message.Response; 382throw _clientDiagnostics.CreateRequestFailedException(message.Response); 437switch (message.Response.Status) 442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 444return Response.FromValue(value, message.Response); 447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw _clientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 587switch (message.Response.Status) 592using var document = JsonDocument.Parse(message.Response.ContentStream); 594return Response.FromValue(value, message.Response); 597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseColumnsRestOperations.cs (42)
129switch (message.Response.Status) 134using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 136return Response.FromValue(value, message.Response); 139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 176switch (message.Response.Status) 181using var document = JsonDocument.Parse(message.Response.ContentStream); 183return Response.FromValue(value, message.Response); 186throw _clientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return Response.FromValue(value, message.Response); 270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 313switch (message.Response.Status) 318using var document = JsonDocument.Parse(message.Response.ContentStream); 320return Response.FromValue(value, message.Response); 323throw _clientDiagnostics.CreateRequestFailedException(message.Response); 398switch (message.Response.Status) 403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 405return Response.FromValue(value, message.Response); 408return Response.FromValue((DatabaseColumnData)null, message.Response); 410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 462using var document = JsonDocument.Parse(message.Response.ContentStream); 464return Response.FromValue(value, message.Response); 467return Response.FromValue((DatabaseColumnData)null, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 525switch (message.Response.Status) 530using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 532return Response.FromValue(value, message.Response); 535throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 577switch (message.Response.Status) 582using var document = JsonDocument.Parse(message.Response.ContentStream); 584return Response.FromValue(value, message.Response); 587throw _clientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 656return Response.FromValue(value, message.Response); 659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 707switch (message.Response.Status) 712using var document = JsonDocument.Parse(message.Response.ContentStream); 714return Response.FromValue(value, message.Response); 717throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseQueriesRestOperations.cs (24)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154throw _clientDiagnostics.CreateRequestFailedException(message.Response); 231switch (message.Response.Status) 236using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 238return Response.FromValue(value, message.Response); 241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 281switch (message.Response.Status) 286using var document = JsonDocument.Parse(message.Response.ContentStream); 288return Response.FromValue(value, message.Response); 291throw _clientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 357return Response.FromValue(value, message.Response); 360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 410using var document = JsonDocument.Parse(message.Response.ContentStream); 412return Response.FromValue(value, message.Response); 415throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseRestoreDetailsRestOperations.cs (10)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((ManagedDatabaseRestoreDetailsResultData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ManagedDatabaseRestoreDetailsResultData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSchemasRestOperations.cs (26)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220return Response.FromValue((DatabaseSchemaData)null, message.Response); 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269return Response.FromValue((DatabaseSchemaData)null, message.Response); 271throw _clientDiagnostics.CreateRequestFailedException(message.Response); 323switch (message.Response.Status) 328using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 330return Response.FromValue(value, message.Response); 333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 371switch (message.Response.Status) 376using var document = JsonDocument.Parse(message.Response.ContentStream); 378return Response.FromValue(value, message.Response); 381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSecurityAlertPoliciesRestOperations.cs (34)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((ManagedDatabaseSecurityAlertPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ManagedDatabaseSecurityAlertPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw _clientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSecurityEventsRestOperations.cs (16)
111switch (message.Response.Status) 116using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 118return Response.FromValue(value, message.Response); 121throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw _clientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 273switch (message.Response.Status) 278using var document = JsonDocument.Parse(message.Response.ContentStream); 280return Response.FromValue(value, message.Response); 283throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSensitivityLabelsRestOperations.cs (80)
114switch (message.Response.Status) 119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 121return Response.FromValue(value, message.Response); 124return Response.FromValue((SensitivityLabelData)null, message.Response); 126throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174switch (message.Response.Status) 179using var document = JsonDocument.Parse(message.Response.ContentStream); 181return Response.FromValue(value, message.Response); 184return Response.FromValue((SensitivityLabelData)null, message.Response); 186throw _clientDiagnostics.CreateRequestFailedException(message.Response); 272switch (message.Response.Status) 278using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 280return Response.FromValue(value, message.Response); 283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 425return message.Response; 427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 474switch (message.Response.Status) 477return message.Response; 479throw _clientDiagnostics.CreateRequestFailedException(message.Response); 556switch (message.Response.Status) 559return message.Response; 561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 611return message.Response; 613throw _clientDiagnostics.CreateRequestFailedException(message.Response); 690switch (message.Response.Status) 693return message.Response; 695throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 742switch (message.Response.Status) 745return message.Response; 747throw _clientDiagnostics.CreateRequestFailedException(message.Response); 817switch (message.Response.Status) 822using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 824return Response.FromValue(value, message.Response); 827throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 862switch (message.Response.Status) 867using var document = JsonDocument.Parse(message.Response.ContentStream); 869return Response.FromValue(value, message.Response); 872throw _clientDiagnostics.CreateRequestFailedException(message.Response); 935switch (message.Response.Status) 938return message.Response; 940throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 977switch (message.Response.Status) 980return message.Response; 982throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1052switch (message.Response.Status) 1057using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1059return Response.FromValue(value, message.Response); 1062throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1097switch (message.Response.Status) 1102using var document = JsonDocument.Parse(message.Response.ContentStream); 1104return Response.FromValue(value, message.Response); 1107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1170switch (message.Response.Status) 1173return message.Response; 1175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1212switch (message.Response.Status) 1215return message.Response; 1217throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1271switch (message.Response.Status) 1276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1278return Response.FromValue(value, message.Response); 1281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1321switch (message.Response.Status) 1326using var document = JsonDocument.Parse(message.Response.ContentStream); 1328return Response.FromValue(value, message.Response); 1331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1385switch (message.Response.Status) 1390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1392return Response.FromValue(value, message.Response); 1395throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1435switch (message.Response.Status) 1440using var document = JsonDocument.Parse(message.Response.ContentStream); 1442return Response.FromValue(value, message.Response); 1445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabasesRestOperations.cs (66)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((ManagedDatabaseData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((ManagedDatabaseData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 309return message.Response; 311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 348switch (message.Response.Status) 353return message.Response; 355throw _clientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 413return message.Response; 415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 517switch (message.Response.Status) 521return message.Response; 523throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 560switch (message.Response.Status) 564return message.Response; 566throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 633return message.Response; 635throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 676return message.Response; 678throw _clientDiagnostics.CreateRequestFailedException(message.Response); 726switch (message.Response.Status) 731using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 733return Response.FromValue(value, message.Response); 736throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 763switch (message.Response.Status) 768using var document = JsonDocument.Parse(message.Response.ContentStream); 770return Response.FromValue(value, message.Response); 773throw _clientDiagnostics.CreateRequestFailedException(message.Response); 819switch (message.Response.Status) 824using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 826return Response.FromValue(value, message.Response); 829throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 861switch (message.Response.Status) 866using var document = JsonDocument.Parse(message.Response.ContentStream); 868return Response.FromValue(value, message.Response); 871throw _clientDiagnostics.CreateRequestFailedException(message.Response); 917switch (message.Response.Status) 922using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 924return Response.FromValue(value, message.Response); 927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 959switch (message.Response.Status) 964using var document = JsonDocument.Parse(message.Response.ContentStream); 966return Response.FromValue(value, message.Response); 969throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseTablesRestOperations.cs (26)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 229switch (message.Response.Status) 234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((DatabaseTableData)null, message.Response); 241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 283switch (message.Response.Status) 288using var document = JsonDocument.Parse(message.Response.ContentStream); 290return Response.FromValue(value, message.Response); 293return Response.FromValue((DatabaseTableData)null, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 359return Response.FromValue(value, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 410using var document = JsonDocument.Parse(message.Response.ContentStream); 412return Response.FromValue(value, message.Response); 415throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseTransparentDataEncryptionRestOperations.cs (34)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((ManagedTransparentDataEncryptionData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ManagedTransparentDataEncryptionData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw _clientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs (24)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 115throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 159using var document = JsonDocument.Parse(message.Response.ContentStream); 161return Response.FromValue(value, message.Response); 164return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 166throw _clientDiagnostics.CreateRequestFailedException(message.Response); 242switch (message.Response.Status) 247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 249return Response.FromValue(value, message.Response); 252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 296switch (message.Response.Status) 301using var document = JsonDocument.Parse(message.Response.ContentStream); 303return Response.FromValue(value, message.Response); 306throw _clientDiagnostics.CreateRequestFailedException(message.Response); 372switch (message.Response.Status) 375return message.Response; 377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 416switch (message.Response.Status) 419return message.Response; 421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs (40)
100switch (message.Response.Status) 104return message.Response; 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 148return message.Response; 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 270using var document = JsonDocument.Parse(message.Response.ContentStream); 272return Response.FromValue(value, message.Response); 275throw _clientDiagnostics.CreateRequestFailedException(message.Response); 333switch (message.Response.Status) 338using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 340return Response.FromValue(value, message.Response); 343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 381using var document = JsonDocument.Parse(message.Response.ContentStream); 383return Response.FromValue(value, message.Response); 386throw _clientDiagnostics.CreateRequestFailedException(message.Response); 450switch (message.Response.Status) 455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 457return Response.FromValue(value, message.Response); 460return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 500switch (message.Response.Status) 505using var document = JsonDocument.Parse(message.Response.ContentStream); 507return Response.FromValue(value, message.Response); 510return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 512throw _clientDiagnostics.CreateRequestFailedException(message.Response); 564switch (message.Response.Status) 569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 571return Response.FromValue(value, message.Response); 574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs (40)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 335return message.Response; 337throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 370switch (message.Response.Status) 373return message.Response; 375throw _clientDiagnostics.CreateRequestFailedException(message.Response); 430switch (message.Response.Status) 435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 437return Response.FromValue(value, message.Response); 440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 472switch (message.Response.Status) 477using var document = JsonDocument.Parse(message.Response.ContentStream); 479return Response.FromValue(value, message.Response); 482throw _clientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 540return Response.FromValue(value, message.Response); 543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceAdministratorsRestOperations.cs (38)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191return Response.FromValue((ManagedInstanceAdministratorData)null, message.Response); 193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226using var document = JsonDocument.Parse(message.Response.ContentStream); 228return Response.FromValue(value, message.Response); 231return Response.FromValue((ManagedInstanceAdministratorData)null, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response); 292switch (message.Response.Status) 297return message.Response; 299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 337return message.Response; 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 392return message.Response; 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 426return message.Response; 428throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 516switch (message.Response.Status) 521using var document = JsonDocument.Parse(message.Response.ContentStream); 523return Response.FromValue(value, message.Response); 526throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceAzureADOnlyAuthenticationsRestOperations.cs (38)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ManagedInstanceAzureADOnlyAuthenticationData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ManagedInstanceAzureADOnlyAuthenticationData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202return message.Response; 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333return message.Response; 335throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 425using var document = JsonDocument.Parse(message.Response.ContentStream); 427return Response.FromValue(value, message.Response); 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 518switch (message.Response.Status) 523using var document = JsonDocument.Parse(message.Response.ContentStream); 525return Response.FromValue(value, message.Response); 528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceEncryptionProtectorsRestOperations.cs (38)
86switch (message.Response.Status) 90return message.Response; 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120switch (message.Response.Status) 124return message.Response; 126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 174switch (message.Response.Status) 179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 181return Response.FromValue(value, message.Response); 184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return Response.FromValue(value, message.Response); 281return Response.FromValue((ManagedInstanceEncryptionProtectorData)null, message.Response); 283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 316using var document = JsonDocument.Parse(message.Response.ContentStream); 318return Response.FromValue(value, message.Response); 321return Response.FromValue((ManagedInstanceEncryptionProtectorData)null, message.Response); 323throw _clientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 386return message.Response; 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 425return message.Response; 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 473switch (message.Response.Status) 478using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 480return Response.FromValue(value, message.Response); 483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceKeysRestOperations.cs (38)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((ManagedInstanceKeyData)null, message.Response); 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((ManagedInstanceKeyData)null, message.Response); 247throw _clientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315return message.Response; 317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354switch (message.Response.Status) 359return message.Response; 361throw _clientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 419return message.Response; 421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 458return message.Response; 460throw _clientDiagnostics.CreateRequestFailedException(message.Response); 507switch (message.Response.Status) 512using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 514return Response.FromValue(value, message.Response); 517throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 550switch (message.Response.Status) 555using var document = JsonDocument.Parse(message.Response.ContentStream); 557return Response.FromValue(value, message.Response); 560throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceLongTermRetentionPoliciesRestOperations.cs (32)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((ManagedInstanceLongTermRetentionPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ManagedInstanceLongTermRetentionPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw _clientDiagnostics.CreateRequestFailedException(message.Response); 321switch (message.Response.Status) 326using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 328return Response.FromValue(value, message.Response); 331throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 363switch (message.Response.Status) 368using var document = JsonDocument.Parse(message.Response.ContentStream); 370return Response.FromValue(value, message.Response); 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 424switch (message.Response.Status) 429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 431return Response.FromValue(value, message.Response); 434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471switch (message.Response.Status) 476using var document = JsonDocument.Parse(message.Response.ContentStream); 478return Response.FromValue(value, message.Response); 481throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstancePrivateEndpointConnectionsRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((ManagedInstancePrivateEndpointConnectionData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((ManagedInstancePrivateEndpointConnectionData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 213return message.Response; 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 256return message.Response; 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316return message.Response; 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 405switch (message.Response.Status) 410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 412return Response.FromValue(value, message.Response); 415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 447using var document = JsonDocument.Parse(message.Response.ContentStream); 449return Response.FromValue(value, message.Response); 452throw _clientDiagnostics.CreateRequestFailedException(message.Response); 498switch (message.Response.Status) 503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 505return Response.FromValue(value, message.Response); 508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 540switch (message.Response.Status) 545using var document = JsonDocument.Parse(message.Response.ContentStream); 547return Response.FromValue(value, message.Response); 550throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstancePrivateLinkResourcesRestOperations.cs (26)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((ManagedInstancePrivateLinkData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((ManagedInstancePrivateLinkData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 294return Response.FromValue(value, message.Response); 297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 336return Response.FromValue(value, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceRestOperations.cs (32)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191return Response.FromValue((ManagedInstanceOperationData)null, message.Response); 193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226using var document = JsonDocument.Parse(message.Response.ContentStream); 228return Response.FromValue(value, message.Response); 231return Response.FromValue((ManagedInstanceOperationData)null, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response); 283switch (message.Response.Status) 286return message.Response; 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 319return message.Response; 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 367switch (message.Response.Status) 372using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 374return Response.FromValue(value, message.Response); 377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 409switch (message.Response.Status) 414using var document = JsonDocument.Parse(message.Response.ContentStream); 416return Response.FromValue(value, message.Response); 419throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstancesRestOperations.cs (98)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 176switch (message.Response.Status) 181using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 183return Response.FromValue(value, message.Response); 186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 204switch (message.Response.Status) 209using var document = JsonDocument.Parse(message.Response.ContentStream); 211return Response.FromValue(value, message.Response); 214throw _clientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return Response.FromValue(value, message.Response); 270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 298using var document = JsonDocument.Parse(message.Response.ContentStream); 300return Response.FromValue(value, message.Response); 303throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365return Response.FromValue((ManagedInstanceData)null, message.Response); 367throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 395switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405return Response.FromValue((ManagedInstanceData)null, message.Response); 407throw _clientDiagnostics.CreateRequestFailedException(message.Response); 463switch (message.Response.Status) 468return message.Response; 470throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507return message.Response; 509throw _clientDiagnostics.CreateRequestFailedException(message.Response); 555switch (message.Response.Status) 560return message.Response; 562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 589switch (message.Response.Status) 594return message.Response; 596throw _clientDiagnostics.CreateRequestFailedException(message.Response); 652switch (message.Response.Status) 656return message.Response; 658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 690switch (message.Response.Status) 694return message.Response; 696throw _clientDiagnostics.CreateRequestFailedException(message.Response); 779switch (message.Response.Status) 784using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 786return Response.FromValue(value, message.Response); 789throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 823switch (message.Response.Status) 828using var document = JsonDocument.Parse(message.Response.ContentStream); 830return Response.FromValue(value, message.Response); 833throw _clientDiagnostics.CreateRequestFailedException(message.Response); 885switch (message.Response.Status) 889return message.Response; 891throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 919switch (message.Response.Status) 923return message.Response; 925throw _clientDiagnostics.CreateRequestFailedException(message.Response); 972switch (message.Response.Status) 977using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 979return Response.FromValue(value, message.Response); 982throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1015switch (message.Response.Status) 1020using var document = JsonDocument.Parse(message.Response.ContentStream); 1022return Response.FromValue(value, message.Response); 1025throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1062switch (message.Response.Status) 1067using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1069return Response.FromValue(value, message.Response); 1072throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1095switch (message.Response.Status) 1100using var document = JsonDocument.Parse(message.Response.ContentStream); 1102return Response.FromValue(value, message.Response); 1105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1147switch (message.Response.Status) 1152using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1154return Response.FromValue(value, message.Response); 1157throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1185switch (message.Response.Status) 1190using var document = JsonDocument.Parse(message.Response.ContentStream); 1192return Response.FromValue(value, message.Response); 1195throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1248switch (message.Response.Status) 1253using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1255return Response.FromValue(value, message.Response); 1258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1297switch (message.Response.Status) 1302using var document = JsonDocument.Parse(message.Response.ContentStream); 1304return Response.FromValue(value, message.Response); 1307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceTdeCertificatesRestOperations.cs (6)
91switch (message.Response.Status) 95return message.Response; 97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 133return message.Response; 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceVulnerabilityAssessmentsRestOperations.cs (40)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ManagedInstanceVulnerabilityAssessmentData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ManagedInstanceVulnerabilityAssessmentData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 205return Response.FromValue(value, message.Response); 208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 247using var document = JsonDocument.Parse(message.Response.ContentStream); 249return Response.FromValue(value, message.Response); 252throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 304return message.Response; 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 337return message.Response; 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 394return Response.FromValue(value, message.Response); 397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 480switch (message.Response.Status) 485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 487return Response.FromValue(value, message.Response); 490throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 522switch (message.Response.Status) 527using var document = JsonDocument.Parse(message.Response.ContentStream); 529return Response.FromValue(value, message.Response); 532throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs (38)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 336return message.Response; 338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 380return message.Response; 382throw _clientDiagnostics.CreateRequestFailedException(message.Response); 437switch (message.Response.Status) 442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 444return Response.FromValue(value, message.Response); 447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw _clientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 587switch (message.Response.Status) 592using var document = JsonDocument.Parse(message.Response.ContentStream); 594return Response.FromValue(value, message.Response); 597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedServerSecurityAlertPoliciesRestOperations.cs (32)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ManagedServerSecurityAlertPolicyData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ManagedServerSecurityAlertPolicyData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 201return message.Response; 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425switch (message.Response.Status) 430using var document = JsonDocument.Parse(message.Response.ContentStream); 432return Response.FromValue(value, message.Response); 435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\OperationsHealthRestOperations.cs (16)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 160switch (message.Response.Status) 165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 167return Response.FromValue(value, message.Response); 170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\OutboundFirewallRulesRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((OutboundFirewallRuleData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((OutboundFirewallRuleData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 444switch (message.Response.Status) 449using var document = JsonDocument.Parse(message.Response.ContentStream); 451return Response.FromValue(value, message.Response); 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 500switch (message.Response.Status) 505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 507return Response.FromValue(value, message.Response); 510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 542switch (message.Response.Status) 547using var document = JsonDocument.Parse(message.Response.ContentStream); 549return Response.FromValue(value, message.Response); 552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 213return message.Response; 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 256return message.Response; 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316return message.Response; 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355return message.Response; 357throw _clientDiagnostics.CreateRequestFailedException(message.Response); 405switch (message.Response.Status) 410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 412return Response.FromValue(value, message.Response); 415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 447using var document = JsonDocument.Parse(message.Response.ContentStream); 449return Response.FromValue(value, message.Response); 452throw _clientDiagnostics.CreateRequestFailedException(message.Response); 498switch (message.Response.Status) 503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 505return Response.FromValue(value, message.Response); 508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 540switch (message.Response.Status) 545using var document = JsonDocument.Parse(message.Response.ContentStream); 547return Response.FromValue(value, message.Response); 550throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (26)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((PrivateLinkResourceData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((PrivateLinkResourceData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 294return Response.FromValue(value, message.Response); 297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 336return Response.FromValue(value, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RecoverableDatabasesRestOperations.cs (18)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((RecoverableDatabaseData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((RecoverableDatabaseData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231switch (message.Response.Status) 236using var document = JsonDocument.Parse(message.Response.ContentStream); 238return Response.FromValue(value, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RecoverableManagedDatabasesRestOperations.cs (26)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((RecoverableManagedDatabaseData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((RecoverableManagedDatabaseData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 294return Response.FromValue(value, message.Response); 297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 336return Response.FromValue(value, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ReplicationLinksRestOperations.cs (66)
96switch (message.Response.Status) 100return message.Response; 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 143return message.Response; 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 210return message.Response; 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 249switch (message.Response.Status) 253return message.Response; 255throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 320return message.Response; 322throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 363return message.Response; 365throw _clientDiagnostics.CreateRequestFailedException(message.Response); 435switch (message.Response.Status) 439return message.Response; 441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 483switch (message.Response.Status) 487return message.Response; 489throw _clientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw _clientDiagnostics.CreateRequestFailedException(message.Response); 657switch (message.Response.Status) 662using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 664return Response.FromValue(value, message.Response); 667return Response.FromValue((ReplicationLinkData)null, message.Response); 669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 706switch (message.Response.Status) 711using var document = JsonDocument.Parse(message.Response.ContentStream); 713return Response.FromValue(value, message.Response); 716return Response.FromValue((ReplicationLinkData)null, message.Response); 718throw _clientDiagnostics.CreateRequestFailedException(message.Response); 766switch (message.Response.Status) 771using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 773return Response.FromValue(value, message.Response); 776throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 803switch (message.Response.Status) 808using var document = JsonDocument.Parse(message.Response.ContentStream); 810return Response.FromValue(value, message.Response); 813throw _clientDiagnostics.CreateRequestFailedException(message.Response); 864switch (message.Response.Status) 869using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 871return Response.FromValue(value, message.Response); 874throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 911switch (message.Response.Status) 916using var document = JsonDocument.Parse(message.Response.ContentStream); 918return Response.FromValue(value, message.Response); 921throw _clientDiagnostics.CreateRequestFailedException(message.Response); 967switch (message.Response.Status) 972using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 974return Response.FromValue(value, message.Response); 977throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1009switch (message.Response.Status) 1014using var document = JsonDocument.Parse(message.Response.ContentStream); 1016return Response.FromValue(value, message.Response); 1019throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableDroppedDatabasesRestOperations.cs (26)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((RestorableDroppedDatabaseData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((RestorableDroppedDatabaseData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 294return Response.FromValue(value, message.Response); 297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 336return Response.FromValue(value, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableDroppedManagedDatabasesRestOperations.cs (26)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((RestorableDroppedManagedDatabaseData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((RestorableDroppedManagedDatabaseData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 294return Response.FromValue(value, message.Response); 297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 336return Response.FromValue(value, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorePointsRestOperations.cs (38)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212return message.Response; 214throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256return message.Response; 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 326return Response.FromValue(value, message.Response); 329return Response.FromValue((RestorePointData)null, message.Response); 331throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 368switch (message.Response.Status) 373using var document = JsonDocument.Parse(message.Response.ContentStream); 375return Response.FromValue(value, message.Response); 378return Response.FromValue((RestorePointData)null, message.Response); 380throw _clientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 443return message.Response; 445throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 485return message.Response; 487throw _clientDiagnostics.CreateRequestFailedException(message.Response); 538switch (message.Response.Status) 543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 545return Response.FromValue(value, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SensitivityLabelsRestOperations.cs (80)
106switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 227return message.Response; 229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 269return message.Response; 271throw _clientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 348return Response.FromValue(value, message.Response); 351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396throw _clientDiagnostics.CreateRequestFailedException(message.Response); 459switch (message.Response.Status) 462return message.Response; 464throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 504return message.Response; 506throw _clientDiagnostics.CreateRequestFailedException(message.Response); 583switch (message.Response.Status) 586return message.Response; 588throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 635switch (message.Response.Status) 638return message.Response; 640throw _clientDiagnostics.CreateRequestFailedException(message.Response); 717switch (message.Response.Status) 720return message.Response; 722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 769switch (message.Response.Status) 772return message.Response; 774throw _clientDiagnostics.CreateRequestFailedException(message.Response); 852switch (message.Response.Status) 857using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 859return Response.FromValue(value, message.Response); 862return Response.FromValue((SensitivityLabelData)null, message.Response); 864throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 912switch (message.Response.Status) 917using var document = JsonDocument.Parse(message.Response.ContentStream); 919return Response.FromValue(value, message.Response); 922return Response.FromValue((SensitivityLabelData)null, message.Response); 924throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1010switch (message.Response.Status) 1016using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1018return Response.FromValue(value, message.Response); 1021throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1073switch (message.Response.Status) 1079using var document = JsonDocument.Parse(message.Response.ContentStream); 1081return Response.FromValue(value, message.Response); 1084throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1160switch (message.Response.Status) 1163return message.Response; 1165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1212switch (message.Response.Status) 1215return message.Response; 1217throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1271switch (message.Response.Status) 1276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1278return Response.FromValue(value, message.Response); 1281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1321switch (message.Response.Status) 1326using var document = JsonDocument.Parse(message.Response.ContentStream); 1328return Response.FromValue(value, message.Response); 1331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1385switch (message.Response.Status) 1390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1392return Response.FromValue(value, message.Response); 1395throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1435switch (message.Response.Status) 1440using var document = JsonDocument.Parse(message.Response.ContentStream); 1442return Response.FromValue(value, message.Response); 1445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAdvisorsRestOperations.cs (26)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211return Response.FromValue((AdvisorData)null, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 245switch (message.Response.Status) 250using var document = JsonDocument.Parse(message.Response.ContentStream); 252return Response.FromValue(value, message.Response); 255return Response.FromValue((AdvisorData)null, message.Response); 257throw _clientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 327return Response.FromValue(value, message.Response); 330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 372using var document = JsonDocument.Parse(message.Response.ContentStream); 374return Response.FromValue(value, message.Response); 377throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAutomaticTuningRestOperations.cs (18)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93return Response.FromValue((ServerAutomaticTuningData)null, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132return Response.FromValue((ServerAutomaticTuningData)null, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAzureADAdministratorsRestOperations.cs (38)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ServerAzureADAdministratorData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ServerAzureADAdministratorData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202return message.Response; 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333return message.Response; 335throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 425using var document = JsonDocument.Parse(message.Response.ContentStream); 427return Response.FromValue(value, message.Response); 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 518switch (message.Response.Status) 523using var document = JsonDocument.Parse(message.Response.ContentStream); 525return Response.FromValue(value, message.Response); 528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAzureADOnlyAuthenticationsRestOperations.cs (38)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ServerAzureADOnlyAuthenticationData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ServerAzureADOnlyAuthenticationData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202return message.Response; 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298return message.Response; 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333return message.Response; 335throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 425using var document = JsonDocument.Parse(message.Response.ContentStream); 427return Response.FromValue(value, message.Response); 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 518switch (message.Response.Status) 523using var document = JsonDocument.Parse(message.Response.ContentStream); 525return Response.FromValue(value, message.Response); 528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerBlobAuditingPoliciesRestOperations.cs (32)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ServerBlobAuditingPolicyData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ServerBlobAuditingPolicyData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 201return message.Response; 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425switch (message.Response.Status) 430using var document = JsonDocument.Parse(message.Response.ContentStream); 432return Response.FromValue(value, message.Response); 435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerCommunicationLinksRestOperations.cs (30)
89switch (message.Response.Status) 92return message.Response; 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 129return message.Response; 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((ServerCommunicationLinkData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((ServerCommunicationLinkData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 308return message.Response; 310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 347switch (message.Response.Status) 351return message.Response; 353throw _clientDiagnostics.CreateRequestFailedException(message.Response); 401switch (message.Response.Status) 406using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 408return Response.FromValue(value, message.Response); 411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 438switch (message.Response.Status) 443using var document = JsonDocument.Parse(message.Response.ContentStream); 445return Response.FromValue(value, message.Response); 448throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerConnectionPoliciesRestOperations.cs (32)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ServerConnectionPolicyData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ServerConnectionPolicyData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 201return message.Response; 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425switch (message.Response.Status) 430using var document = JsonDocument.Parse(message.Response.ContentStream); 432return Response.FromValue(value, message.Response); 435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerDevOpsAuditSettingsRestOperations.cs (32)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((ServerDevOpsAuditingSettingsData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((ServerDevOpsAuditingSettingsData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 213return message.Response; 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 256return message.Response; 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 313return Response.FromValue(value, message.Response); 316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343switch (message.Response.Status) 348using var document = JsonDocument.Parse(message.Response.ContentStream); 350return Response.FromValue(value, message.Response); 353throw _clientDiagnostics.CreateRequestFailedException(message.Response); 399switch (message.Response.Status) 404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 406return Response.FromValue(value, message.Response); 409throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 441switch (message.Response.Status) 446using var document = JsonDocument.Parse(message.Response.ContentStream); 448return Response.FromValue(value, message.Response); 451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerDnsAliasesRestOperations.cs (44)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((ServerDnsAliasData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((ServerDnsAliasData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205return message.Response; 207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 244return message.Response; 246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 304return message.Response; 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343return message.Response; 345throw _clientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 400return Response.FromValue(value, message.Response); 403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw _clientDiagnostics.CreateRequestFailedException(message.Response); 504switch (message.Response.Status) 508return message.Response; 510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 551return message.Response; 553throw _clientDiagnostics.CreateRequestFailedException(message.Response); 599switch (message.Response.Status) 604using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 606return Response.FromValue(value, message.Response); 609throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 641switch (message.Response.Status) 646using var document = JsonDocument.Parse(message.Response.ContentStream); 648return Response.FromValue(value, message.Response); 651throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerKeysRestOperations.cs (38)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 192return Response.FromValue(value, message.Response); 195return Response.FromValue((ServerKeyData)null, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239return Response.FromValue((ServerKeyData)null, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 309return message.Response; 311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 348switch (message.Response.Status) 353return message.Response; 355throw _clientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 413return message.Response; 415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452return message.Response; 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 500switch (message.Response.Status) 505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 507return Response.FromValue(value, message.Response); 510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 542switch (message.Response.Status) 547using var document = JsonDocument.Parse(message.Response.ContentStream); 549return Response.FromValue(value, message.Response); 552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerRestOperations.cs (16)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 224using var document = JsonDocument.Parse(message.Response.ContentStream); 226return Response.FromValue(value, message.Response); 229throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerSecurityAlertPoliciesRestOperations.cs (32)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ServerSecurityAlertPolicyData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ServerSecurityAlertPolicyData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 201return message.Response; 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425switch (message.Response.Status) 430using var document = JsonDocument.Parse(message.Response.ContentStream); 432return Response.FromValue(value, message.Response); 435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServersRestOperations.cs (74)
82switch (message.Response.Status) 87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 89return Response.FromValue(value, message.Response); 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw _clientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((SqlServerData)null, message.Response); 189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 217switch (message.Response.Status) 222using var document = JsonDocument.Parse(message.Response.ContentStream); 224return Response.FromValue(value, message.Response); 227return Response.FromValue((SqlServerData)null, message.Response); 229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 285switch (message.Response.Status) 290return message.Response; 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 329return message.Response; 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 382return message.Response; 384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 411switch (message.Response.Status) 416return message.Response; 418throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 478return message.Response; 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 512switch (message.Response.Status) 516return message.Response; 518throw _clientDiagnostics.CreateRequestFailedException(message.Response); 557switch (message.Response.Status) 562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 564return Response.FromValue(value, message.Response); 567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw _clientDiagnostics.CreateRequestFailedException(message.Response); 652switch (message.Response.Status) 656return message.Response; 658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 690switch (message.Response.Status) 694return message.Response; 696throw _clientDiagnostics.CreateRequestFailedException(message.Response); 739switch (message.Response.Status) 744using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 746return Response.FromValue(value, message.Response); 749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 771switch (message.Response.Status) 776using var document = JsonDocument.Parse(message.Response.ContentStream); 778return Response.FromValue(value, message.Response); 781throw _clientDiagnostics.CreateRequestFailedException(message.Response); 823switch (message.Response.Status) 828using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 830return Response.FromValue(value, message.Response); 833throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 861switch (message.Response.Status) 866using var document = JsonDocument.Parse(message.Response.ContentStream); 868return Response.FromValue(value, message.Response); 871throw _clientDiagnostics.CreateRequestFailedException(message.Response); 908switch (message.Response.Status) 913using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 915return Response.FromValue(value, message.Response); 918throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 941switch (message.Response.Status) 946using var document = JsonDocument.Parse(message.Response.ContentStream); 948return Response.FromValue(value, message.Response); 951throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerTrustGroupsRestOperations.cs (54)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((ServerTrustGroupData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((ServerTrustGroupData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 444switch (message.Response.Status) 449using var document = JsonDocument.Parse(message.Response.ContentStream); 451return Response.FromValue(value, message.Response); 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 502switch (message.Response.Status) 507using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 509return Response.FromValue(value, message.Response); 512throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 539switch (message.Response.Status) 544using var document = JsonDocument.Parse(message.Response.ContentStream); 546return Response.FromValue(value, message.Response); 549throw _clientDiagnostics.CreateRequestFailedException(message.Response); 595switch (message.Response.Status) 600using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 602return Response.FromValue(value, message.Response); 605throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 637switch (message.Response.Status) 642using var document = JsonDocument.Parse(message.Response.ContentStream); 644return Response.FromValue(value, message.Response); 647throw _clientDiagnostics.CreateRequestFailedException(message.Response); 693switch (message.Response.Status) 698using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 700return Response.FromValue(value, message.Response); 703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 735switch (message.Response.Status) 740using var document = JsonDocument.Parse(message.Response.ContentStream); 742return Response.FromValue(value, message.Response); 745throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerUsagesRestOperations.cs (8)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerVulnerabilityAssessmentsRestOperations.cs (40)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96return Response.FromValue((ServerVulnerabilityAssessmentData)null, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136return Response.FromValue((ServerVulnerabilityAssessmentData)null, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 205return Response.FromValue(value, message.Response); 208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 247using var document = JsonDocument.Parse(message.Response.ContentStream); 249return Response.FromValue(value, message.Response); 252throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 304return message.Response; 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 337return message.Response; 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 394return Response.FromValue(value, message.Response); 397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 480switch (message.Response.Status) 485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 487return Response.FromValue(value, message.Response); 490throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 522switch (message.Response.Status) 527using var document = JsonDocument.Parse(message.Response.ContentStream); 529return Response.FromValue(value, message.Response); 532throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceObjectivesRestOperations.cs (18)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((ServiceObjectiveData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((ServiceObjectiveData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 201return Response.FromValue(value, message.Response); 204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231switch (message.Response.Status) 236using var document = JsonDocument.Parse(message.Response.ContentStream); 238return Response.FromValue(value, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SqlAgentRestOperations.cs (18)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93return Response.FromValue((SqlAgentConfigurationData)null, message.Response); 95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132return Response.FromValue((SqlAgentConfigurationData)null, message.Response); 134throw _clientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SubscriptionUsagesRestOperations.cs (26)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176return Response.FromValue((SubscriptionUsageData)null, message.Response); 178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 205switch (message.Response.Status) 210using var document = JsonDocument.Parse(message.Response.ContentStream); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((SubscriptionUsageData)null, message.Response); 217throw _clientDiagnostics.CreateRequestFailedException(message.Response); 258switch (message.Response.Status) 263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 265return Response.FromValue(value, message.Response); 268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 295switch (message.Response.Status) 300using var document = JsonDocument.Parse(message.Response.ContentStream); 302return Response.FromValue(value, message.Response); 305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SyncAgentsRestOperations.cs (62)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((SyncAgentData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((SyncAgentData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 444switch (message.Response.Status) 449using var document = JsonDocument.Parse(message.Response.ContentStream); 451return Response.FromValue(value, message.Response); 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 516return Response.FromValue(value, message.Response); 519throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 551switch (message.Response.Status) 556using var document = JsonDocument.Parse(message.Response.ContentStream); 558return Response.FromValue(value, message.Response); 561throw _clientDiagnostics.CreateRequestFailedException(message.Response); 616switch (message.Response.Status) 621using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 623return Response.FromValue(value, message.Response); 626throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw _clientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 719using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 721return Response.FromValue(value, message.Response); 724throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 761using var document = JsonDocument.Parse(message.Response.ContentStream); 763return Response.FromValue(value, message.Response); 766throw _clientDiagnostics.CreateRequestFailedException(message.Response); 817switch (message.Response.Status) 822using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 824return Response.FromValue(value, message.Response); 827throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 864switch (message.Response.Status) 869using var document = JsonDocument.Parse(message.Response.ContentStream); 871return Response.FromValue(value, message.Response); 874throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SyncGroupsRestOperations.cs (110)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 184return message.Response; 186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 227return message.Response; 229throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw _clientDiagnostics.CreateRequestFailedException(message.Response); 429switch (message.Response.Status) 434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 436return Response.FromValue(value, message.Response); 439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 488switch (message.Response.Status) 493using var document = JsonDocument.Parse(message.Response.ContentStream); 495return Response.FromValue(value, message.Response); 498throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 562return message.Response; 564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 601switch (message.Response.Status) 604return message.Response; 606throw _clientDiagnostics.CreateRequestFailedException(message.Response); 667switch (message.Response.Status) 670return message.Response; 672throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 709switch (message.Response.Status) 712return message.Response; 714throw _clientDiagnostics.CreateRequestFailedException(message.Response); 775switch (message.Response.Status) 780using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 782return Response.FromValue(value, message.Response); 785return Response.FromValue((SyncGroupData)null, message.Response); 787throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 824switch (message.Response.Status) 829using var document = JsonDocument.Parse(message.Response.ContentStream); 831return Response.FromValue(value, message.Response); 834return Response.FromValue((SyncGroupData)null, message.Response); 836throw _clientDiagnostics.CreateRequestFailedException(message.Response); 906switch (message.Response.Status) 911return message.Response; 913throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 955switch (message.Response.Status) 960return message.Response; 962throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1022switch (message.Response.Status) 1027return message.Response; 1029throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1066switch (message.Response.Status) 1071return message.Response; 1073throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1143switch (message.Response.Status) 1147return message.Response; 1149throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1191switch (message.Response.Status) 1195return message.Response; 1197throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1252switch (message.Response.Status) 1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1259return Response.FromValue(value, message.Response); 1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1294switch (message.Response.Status) 1299using var document = JsonDocument.Parse(message.Response.ContentStream); 1301return Response.FromValue(value, message.Response); 1304throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1345switch (message.Response.Status) 1350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1352return Response.FromValue(value, message.Response); 1355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1382switch (message.Response.Status) 1387using var document = JsonDocument.Parse(message.Response.ContentStream); 1389return Response.FromValue(value, message.Response); 1392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1448switch (message.Response.Status) 1453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1455return Response.FromValue(value, message.Response); 1458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1500switch (message.Response.Status) 1505using var document = JsonDocument.Parse(message.Response.ContentStream); 1507return Response.FromValue(value, message.Response); 1510throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1578switch (message.Response.Status) 1583using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1585return Response.FromValue(value, message.Response); 1588throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1642switch (message.Response.Status) 1647using var document = JsonDocument.Parse(message.Response.ContentStream); 1649return Response.FromValue(value, message.Response); 1652throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1703switch (message.Response.Status) 1708using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1710return Response.FromValue(value, message.Response); 1713throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1750switch (message.Response.Status) 1755using var document = JsonDocument.Parse(message.Response.ContentStream); 1757return Response.FromValue(value, message.Response); 1760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SyncMembersRestOperations.cs (66)
104switch (message.Response.Status) 109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 111return Response.FromValue(value, message.Response); 114return Response.FromValue((SyncMemberData)null, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 158switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 165return Response.FromValue(value, message.Response); 168return Response.FromValue((SyncMemberData)null, message.Response); 170throw _clientDiagnostics.CreateRequestFailedException(message.Response); 247switch (message.Response.Status) 252return message.Response; 254throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 301switch (message.Response.Status) 306return message.Response; 308throw _clientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380return message.Response; 382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429return message.Response; 431throw _clientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 512return message.Response; 514throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 561switch (message.Response.Status) 565return message.Response; 567throw _clientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 676switch (message.Response.Status) 681using var document = JsonDocument.Parse(message.Response.ContentStream); 683return Response.FromValue(value, message.Response); 686throw _clientDiagnostics.CreateRequestFailedException(message.Response); 755switch (message.Response.Status) 760using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 762return Response.FromValue(value, message.Response); 765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 807switch (message.Response.Status) 812using var document = JsonDocument.Parse(message.Response.ContentStream); 814return Response.FromValue(value, message.Response); 817throw _clientDiagnostics.CreateRequestFailedException(message.Response); 885switch (message.Response.Status) 889return message.Response; 891throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 933switch (message.Response.Status) 937return message.Response; 939throw _clientDiagnostics.CreateRequestFailedException(message.Response); 995switch (message.Response.Status) 1000using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1002return Response.FromValue(value, message.Response); 1005throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1047switch (message.Response.Status) 1052using var document = JsonDocument.Parse(message.Response.ContentStream); 1054return Response.FromValue(value, message.Response); 1057throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1118switch (message.Response.Status) 1123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1125return Response.FromValue(value, message.Response); 1128throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1175switch (message.Response.Status) 1180using var document = JsonDocument.Parse(message.Response.ContentStream); 1182return Response.FromValue(value, message.Response); 1185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TdeCertificatesRestOperations.cs (6)
91switch (message.Response.Status) 95return message.Response; 97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 133return message.Response; 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TimeZonesRestOperations.cs (26)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176return Response.FromValue((SqlTimeZoneData)null, message.Response); 178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 205switch (message.Response.Status) 210using var document = JsonDocument.Parse(message.Response.ContentStream); 212return Response.FromValue(value, message.Response); 215return Response.FromValue((SqlTimeZoneData)null, message.Response); 217throw _clientDiagnostics.CreateRequestFailedException(message.Response); 258switch (message.Response.Status) 263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 265return Response.FromValue(value, message.Response); 268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 295switch (message.Response.Status) 300using var document = JsonDocument.Parse(message.Response.ContentStream); 302return Response.FromValue(value, message.Response); 305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TransparentDataEncryptionsRestOperations.cs (36)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 150throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 273using var document = JsonDocument.Parse(message.Response.ContentStream); 275return Response.FromValue(value, message.Response); 278return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 280throw _clientDiagnostics.CreateRequestFailedException(message.Response); 335switch (message.Response.Status) 340using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 342return Response.FromValue(value, message.Response); 345throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 377switch (message.Response.Status) 382using var document = JsonDocument.Parse(message.Response.ContentStream); 384return Response.FromValue(value, message.Response); 387throw _clientDiagnostics.CreateRequestFailedException(message.Response); 438switch (message.Response.Status) 443using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 445return Response.FromValue(value, message.Response); 448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 485switch (message.Response.Status) 490using var document = JsonDocument.Parse(message.Response.ContentStream); 492return Response.FromValue(value, message.Response); 495throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsagesRestOperations.cs (16)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 191return Response.FromValue(value, message.Response); 194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 227switch (message.Response.Status) 232using var document = JsonDocument.Parse(message.Response.ContentStream); 234return Response.FromValue(value, message.Response); 237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualClustersRestOperations.cs (62)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw _clientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return Response.FromValue(value, message.Response); 175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 192switch (message.Response.Status) 197using var document = JsonDocument.Parse(message.Response.ContentStream); 199return Response.FromValue(value, message.Response); 202throw _clientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 275switch (message.Response.Status) 280using var document = JsonDocument.Parse(message.Response.ContentStream); 282return Response.FromValue(value, message.Response); 285throw _clientDiagnostics.CreateRequestFailedException(message.Response); 332switch (message.Response.Status) 337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 339return Response.FromValue(value, message.Response); 342return Response.FromValue((VirtualClusterData)null, message.Response); 344throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 371switch (message.Response.Status) 376using var document = JsonDocument.Parse(message.Response.ContentStream); 378return Response.FromValue(value, message.Response); 381return Response.FromValue((VirtualClusterData)null, message.Response); 383throw _clientDiagnostics.CreateRequestFailedException(message.Response); 429switch (message.Response.Status) 434return message.Response; 436throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468return message.Response; 470throw _clientDiagnostics.CreateRequestFailedException(message.Response); 526switch (message.Response.Status) 530return message.Response; 532throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 568return message.Response; 570throw _clientDiagnostics.CreateRequestFailedException(message.Response); 606switch (message.Response.Status) 611using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 613return Response.FromValue(value, message.Response); 616throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 638switch (message.Response.Status) 643using var document = JsonDocument.Parse(message.Response.ContentStream); 645return Response.FromValue(value, message.Response); 648throw _clientDiagnostics.CreateRequestFailedException(message.Response); 689switch (message.Response.Status) 694using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 696return Response.FromValue(value, message.Response); 699throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 726switch (message.Response.Status) 731using var document = JsonDocument.Parse(message.Response.ContentStream); 733return Response.FromValue(value, message.Response); 736throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkRulesRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((VirtualNetworkRuleData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((VirtualNetworkRuleData)null, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214return message.Response; 216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw _clientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 444switch (message.Response.Status) 449using var document = JsonDocument.Parse(message.Response.ContentStream); 451return Response.FromValue(value, message.Response); 454throw _clientDiagnostics.CreateRequestFailedException(message.Response); 500switch (message.Response.Status) 505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 507return Response.FromValue(value, message.Response); 510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 542switch (message.Response.Status) 547using var document = JsonDocument.Parse(message.Response.ContentStream); 549return Response.FromValue(value, message.Response); 552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WorkloadClassifiersRestOperations.cs (38)
104switch (message.Response.Status) 109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 111return Response.FromValue(value, message.Response); 114return Response.FromValue((WorkloadClassifierData)null, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 158switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 165return Response.FromValue(value, message.Response); 168return Response.FromValue((WorkloadClassifierData)null, message.Response); 170throw _clientDiagnostics.CreateRequestFailedException(message.Response); 247switch (message.Response.Status) 252return message.Response; 254throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 301switch (message.Response.Status) 306return message.Response; 308throw _clientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380return message.Response; 382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429return message.Response; 431throw _clientDiagnostics.CreateRequestFailedException(message.Response); 493switch (message.Response.Status) 498using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 500return Response.FromValue(value, message.Response); 503throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 540switch (message.Response.Status) 545using var document = JsonDocument.Parse(message.Response.ContentStream); 547return Response.FromValue(value, message.Response); 550throw _clientDiagnostics.CreateRequestFailedException(message.Response); 606switch (message.Response.Status) 611using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 613return Response.FromValue(value, message.Response); 616throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WorkloadGroupsRestOperations.cs (38)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107return Response.FromValue((WorkloadGroupData)null, message.Response); 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156return Response.FromValue((WorkloadGroupData)null, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228switch (message.Response.Status) 233return message.Response; 235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 277switch (message.Response.Status) 282return message.Response; 284throw _clientDiagnostics.CreateRequestFailedException(message.Response); 344switch (message.Response.Status) 349return message.Response; 351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 393return message.Response; 395throw _clientDiagnostics.CreateRequestFailedException(message.Response); 450switch (message.Response.Status) 455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 457return Response.FromValue(value, message.Response); 460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 492switch (message.Response.Status) 497using var document = JsonDocument.Parse(message.Response.ContentStream); 499return Response.FromValue(value, message.Response); 502throw _clientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 600switch (message.Response.Status) 605using var document = JsonDocument.Parse(message.Response.ContentStream); 607return Response.FromValue(value, message.Response); 610throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Storage (719)
Generated\RestOperations\BlobContainersRestOperations.cs (120)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 143switch (message.Response.Status) 148using var document = JsonDocument.Parse(message.Response.ContentStream); 150return Response.FromValue(value, message.Response); 153throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 270using var document = JsonDocument.Parse(message.Response.ContentStream); 272return Response.FromValue(value, message.Response); 275throw _clientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 385switch (message.Response.Status) 390using var document = JsonDocument.Parse(message.Response.ContentStream); 392return Response.FromValue(value, message.Response); 395throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459return Response.FromValue((BlobContainerData)null, message.Response); 461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 493switch (message.Response.Status) 498using var document = JsonDocument.Parse(message.Response.ContentStream); 500return Response.FromValue(value, message.Response); 503return Response.FromValue((BlobContainerData)null, message.Response); 505throw _clientDiagnostics.CreateRequestFailedException(message.Response); 558switch (message.Response.Status) 562return message.Response; 564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 596switch (message.Response.Status) 600return message.Response; 602throw _clientDiagnostics.CreateRequestFailedException(message.Response); 666switch (message.Response.Status) 671using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 673return Response.FromValue(value, message.Response); 676throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 713switch (message.Response.Status) 718using var document = JsonDocument.Parse(message.Response.ContentStream); 720return Response.FromValue(value, message.Response); 723throw _clientDiagnostics.CreateRequestFailedException(message.Response); 787switch (message.Response.Status) 792using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 794return Response.FromValue(value, message.Response); 797throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 834switch (message.Response.Status) 839using var document = JsonDocument.Parse(message.Response.ContentStream); 841return Response.FromValue(value, message.Response); 844throw _clientDiagnostics.CreateRequestFailedException(message.Response); 913switch (message.Response.Status) 918using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 920return Response.FromValue(value, message.Response); 923throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 957switch (message.Response.Status) 962using var document = JsonDocument.Parse(message.Response.ContentStream); 964return Response.FromValue(value, message.Response); 967throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1028switch (message.Response.Status) 1033using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1035return Response.FromValue(value, message.Response); 1038return Response.FromValue((ImmutabilityPolicyData)null, message.Response); 1040throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1073switch (message.Response.Status) 1078using var document = JsonDocument.Parse(message.Response.ContentStream); 1080return Response.FromValue(value, message.Response); 1083return Response.FromValue((ImmutabilityPolicyData)null, message.Response); 1085throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1147switch (message.Response.Status) 1152using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1154return Response.FromValue(value, message.Response); 1157throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1194switch (message.Response.Status) 1199using var document = JsonDocument.Parse(message.Response.ContentStream); 1201return Response.FromValue(value, message.Response); 1204throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1265switch (message.Response.Status) 1270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1272return Response.FromValue(value, message.Response); 1275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1312switch (message.Response.Status) 1317using var document = JsonDocument.Parse(message.Response.ContentStream); 1319return Response.FromValue(value, message.Response); 1322throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1391switch (message.Response.Status) 1396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1398return Response.FromValue(value, message.Response); 1401throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1439switch (message.Response.Status) 1444using var document = JsonDocument.Parse(message.Response.ContentStream); 1446return Response.FromValue(value, message.Response); 1449throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1512switch (message.Response.Status) 1517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1519return Response.FromValue(value, message.Response); 1522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1555switch (message.Response.Status) 1560using var document = JsonDocument.Parse(message.Response.ContentStream); 1562return Response.FromValue(value, message.Response); 1565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1620switch (message.Response.Status) 1624return message.Response; 1626throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1658switch (message.Response.Status) 1662return message.Response; 1664throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1713switch (message.Response.Status) 1718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1720return Response.FromValue(value, message.Response); 1723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1758switch (message.Response.Status) 1763using var document = JsonDocument.Parse(message.Response.ContentStream); 1765return Response.FromValue(value, message.Response); 1768throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BlobInventoryPoliciesRestOperations.cs (32)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((BlobInventoryPolicyData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 135using var document = JsonDocument.Parse(message.Response.ContentStream); 137return Response.FromValue(value, message.Response); 140return Response.FromValue((BlobInventoryPolicyData)null, message.Response); 142throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 308return message.Response; 310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 342return message.Response; 344throw _clientDiagnostics.CreateRequestFailedException(message.Response); 392switch (message.Response.Status) 397using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 399return Response.FromValue(value, message.Response); 402throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 429switch (message.Response.Status) 434using var document = JsonDocument.Parse(message.Response.ContentStream); 436return Response.FromValue(value, message.Response); 439throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BlobServicesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 193switch (message.Response.Status) 198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 200return Response.FromValue(value, message.Response); 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((BlobServiceData)null, message.Response); 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((BlobServiceData)null, message.Response); 345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeletedAccountsRestOperations.cs (26)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 158switch (message.Response.Status) 163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 165return Response.FromValue(value, message.Response); 168return Response.FromValue((DeletedAccountData)null, message.Response); 170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207return Response.FromValue((DeletedAccountData)null, message.Response); 209throw _clientDiagnostics.CreateRequestFailedException(message.Response); 245switch (message.Response.Status) 250using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 252return Response.FromValue(value, message.Response); 255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 277switch (message.Response.Status) 282using var document = JsonDocument.Parse(message.Response.ContentStream); 284return Response.FromValue(value, message.Response); 287throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EncryptionScopesRestOperations.cs (42)
103switch (message.Response.Status) 109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 111return Response.FromValue(value, message.Response); 114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162throw _clientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 272switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw _clientDiagnostics.CreateRequestFailedException(message.Response); 336switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return Response.FromValue(value, message.Response); 346return Response.FromValue((EncryptionScopeData)null, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 385using var document = JsonDocument.Parse(message.Response.ContentStream); 387return Response.FromValue(value, message.Response); 390return Response.FromValue((EncryptionScopeData)null, message.Response); 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 447return Response.FromValue(value, message.Response); 450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487throw _clientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 540return Response.FromValue(value, message.Response); 543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 575switch (message.Response.Status) 580using var document = JsonDocument.Parse(message.Response.ContentStream); 582return Response.FromValue(value, message.Response); 585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FileServicesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 193switch (message.Response.Status) 198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 200return Response.FromValue(value, message.Response); 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((FileServiceData)null, message.Response); 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((FileServiceData)null, message.Response); 345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FileSharesRestOperations.cs (62)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 143switch (message.Response.Status) 148using var document = JsonDocument.Parse(message.Response.ContentStream); 150return Response.FromValue(value, message.Response); 153throw _clientDiagnostics.CreateRequestFailedException(message.Response); 221switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 270switch (message.Response.Status) 276using var document = JsonDocument.Parse(message.Response.ContentStream); 278return Response.FromValue(value, message.Response); 281throw _clientDiagnostics.CreateRequestFailedException(message.Response); 344switch (message.Response.Status) 349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 351return Response.FromValue(value, message.Response); 354throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 391switch (message.Response.Status) 396using var document = JsonDocument.Parse(message.Response.ContentStream); 398return Response.FromValue(value, message.Response); 401throw _clientDiagnostics.CreateRequestFailedException(message.Response); 465switch (message.Response.Status) 470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 472return Response.FromValue(value, message.Response); 475return Response.FromValue((FileShareData)null, message.Response); 477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 511switch (message.Response.Status) 516using var document = JsonDocument.Parse(message.Response.ContentStream); 518return Response.FromValue(value, message.Response); 521return Response.FromValue((FileShareData)null, message.Response); 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 587switch (message.Response.Status) 591return message.Response; 593throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 627switch (message.Response.Status) 631return message.Response; 633throw _clientDiagnostics.CreateRequestFailedException(message.Response); 697switch (message.Response.Status) 700return message.Response; 702throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 739switch (message.Response.Status) 742return message.Response; 744throw _clientDiagnostics.CreateRequestFailedException(message.Response); 812switch (message.Response.Status) 817using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 819return Response.FromValue(value, message.Response); 822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 856switch (message.Response.Status) 861using var document = JsonDocument.Parse(message.Response.ContentStream); 863return Response.FromValue(value, message.Response); 866throw _clientDiagnostics.CreateRequestFailedException(message.Response); 915switch (message.Response.Status) 920using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 922return Response.FromValue(value, message.Response); 925throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 960switch (message.Response.Status) 965using var document = JsonDocument.Parse(message.Response.ContentStream); 967return Response.FromValue(value, message.Response); 970throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagementPoliciesRestOperations.cs (24)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100return Response.FromValue((ManagementPolicyData)null, message.Response); 102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 135using var document = JsonDocument.Parse(message.Response.ContentStream); 137return Response.FromValue(value, message.Response); 140return Response.FromValue((ManagementPolicyData)null, message.Response); 142throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 303switch (message.Response.Status) 307return message.Response; 309throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 337switch (message.Response.Status) 341return message.Response; 343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ObjectReplicationPoliciesRestOperations.cs (32)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((ObjectReplicationPolicyData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((ObjectReplicationPolicyData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360using var document = JsonDocument.Parse(message.Response.ContentStream); 362return Response.FromValue(value, message.Response); 365throw _clientDiagnostics.CreateRequestFailedException(message.Response); 419switch (message.Response.Status) 423return message.Response; 425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 461return message.Response; 463throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (32)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355switch (message.Response.Status) 360using var document = JsonDocument.Parse(message.Response.ContentStream); 362return Response.FromValue(value, message.Response); 365throw _clientDiagnostics.CreateRequestFailedException(message.Response); 419switch (message.Response.Status) 423return message.Response; 425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 461return message.Response; 463throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\QueueRestOperations.cs (48)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 223switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 270switch (message.Response.Status) 275using var document = JsonDocument.Parse(message.Response.ContentStream); 277return Response.FromValue(value, message.Response); 280throw _clientDiagnostics.CreateRequestFailedException(message.Response); 334switch (message.Response.Status) 339using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 341return Response.FromValue(value, message.Response); 344return Response.FromValue((StorageQueueData)null, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 378switch (message.Response.Status) 383using var document = JsonDocument.Parse(message.Response.ContentStream); 385return Response.FromValue(value, message.Response); 388return Response.FromValue((StorageQueueData)null, message.Response); 390throw _clientDiagnostics.CreateRequestFailedException(message.Response); 444switch (message.Response.Status) 447return message.Response; 449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 484return message.Response; 486throw _clientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 583switch (message.Response.Status) 588using var document = JsonDocument.Parse(message.Response.ContentStream); 590return Response.FromValue(value, message.Response); 593throw _clientDiagnostics.CreateRequestFailedException(message.Response); 641switch (message.Response.Status) 646using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 648return Response.FromValue(value, message.Response); 651throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 685switch (message.Response.Status) 690using var document = JsonDocument.Parse(message.Response.ContentStream); 692return Response.FromValue(value, message.Response); 695throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\QueueServicesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 193switch (message.Response.Status) 198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 200return Response.FromValue(value, message.Response); 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((QueueServiceData)null, message.Response); 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((QueueServiceData)null, message.Response); 345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SkusRestOperations.cs (8)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\StorageAccountsRestOperations.cs (120)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 185return message.Response; 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 223return message.Response; 225throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 275return message.Response; 277throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 304switch (message.Response.Status) 308return message.Response; 310throw _clientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 367using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 369return Response.FromValue(value, message.Response); 372return Response.FromValue((StorageAccountData)null, message.Response); 374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 402switch (message.Response.Status) 407using var document = JsonDocument.Parse(message.Response.ContentStream); 409return Response.FromValue(value, message.Response); 412return Response.FromValue((StorageAccountData)null, message.Response); 414throw _clientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 512switch (message.Response.Status) 517using var document = JsonDocument.Parse(message.Response.ContentStream); 519return Response.FromValue(value, message.Response); 522throw _clientDiagnostics.CreateRequestFailedException(message.Response); 556switch (message.Response.Status) 561using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 563return Response.FromValue(value, message.Response); 566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 583switch (message.Response.Status) 588using var document = JsonDocument.Parse(message.Response.ContentStream); 590return Response.FromValue(value, message.Response); 593throw _clientDiagnostics.CreateRequestFailedException(message.Response); 634switch (message.Response.Status) 639using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 641return Response.FromValue(value, message.Response); 644throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676throw _clientDiagnostics.CreateRequestFailedException(message.Response); 725switch (message.Response.Status) 730using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 732return Response.FromValue(value, message.Response); 735throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 767using var document = JsonDocument.Parse(message.Response.ContentStream); 769return Response.FromValue(value, message.Response); 772throw _clientDiagnostics.CreateRequestFailedException(message.Response); 829switch (message.Response.Status) 834using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 836return Response.FromValue(value, message.Response); 839throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 871switch (message.Response.Status) 876using var document = JsonDocument.Parse(message.Response.ContentStream); 878return Response.FromValue(value, message.Response); 881throw _clientDiagnostics.CreateRequestFailedException(message.Response); 938switch (message.Response.Status) 943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 945return Response.FromValue(value, message.Response); 948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 980switch (message.Response.Status) 985using var document = JsonDocument.Parse(message.Response.ContentStream); 987return Response.FromValue(value, message.Response); 990throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1047switch (message.Response.Status) 1052using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1054return Response.FromValue(value, message.Response); 1057throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1089switch (message.Response.Status) 1094using var document = JsonDocument.Parse(message.Response.ContentStream); 1096return Response.FromValue(value, message.Response); 1099throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1146switch (message.Response.Status) 1150return message.Response; 1152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1179switch (message.Response.Status) 1183return message.Response; 1185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1242switch (message.Response.Status) 1246return message.Response; 1248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1280switch (message.Response.Status) 1284return message.Response; 1286throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1333switch (message.Response.Status) 1336return message.Response; 1338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1365switch (message.Response.Status) 1368return message.Response; 1370throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1406switch (message.Response.Status) 1411using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1413return Response.FromValue(value, message.Response); 1416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1438switch (message.Response.Status) 1443using var document = JsonDocument.Parse(message.Response.ContentStream); 1445return Response.FromValue(value, message.Response); 1448throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1489switch (message.Response.Status) 1494using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1496return Response.FromValue(value, message.Response); 1499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1526switch (message.Response.Status) 1531using var document = JsonDocument.Parse(message.Response.ContentStream); 1533return Response.FromValue(value, message.Response); 1536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableRestOperations.cs (48)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 247using var document = JsonDocument.Parse(message.Response.ContentStream); 249return Response.FromValue(value, message.Response); 252throw _clientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 313return Response.FromValue(value, message.Response); 316return Response.FromValue((TableData)null, message.Response); 318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 350switch (message.Response.Status) 355using var document = JsonDocument.Parse(message.Response.ContentStream); 357return Response.FromValue(value, message.Response); 360return Response.FromValue((TableData)null, message.Response); 362throw _clientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 419return message.Response; 421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 456return message.Response; 458throw _clientDiagnostics.CreateRequestFailedException(message.Response); 506switch (message.Response.Status) 511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 513return Response.FromValue(value, message.Response); 516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 543switch (message.Response.Status) 548using var document = JsonDocument.Parse(message.Response.ContentStream); 550return Response.FromValue(value, message.Response); 553throw _clientDiagnostics.CreateRequestFailedException(message.Response); 599switch (message.Response.Status) 604using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 606return Response.FromValue(value, message.Response); 609throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 641switch (message.Response.Status) 646using var document = JsonDocument.Parse(message.Response.ContentStream); 648return Response.FromValue(value, message.Response); 651throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableServicesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 193switch (message.Response.Status) 198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 200return Response.FromValue(value, message.Response); 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((TableServiceData)null, message.Response); 306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((TableServiceData)null, message.Response); 345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsagesRestOperations.cs (8)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.ResourceManager.Tests (1)
Scenario\ResponseExtensionsTests.cs (1)
37var response = message.Response;
Azure.Search.Documents (321)
Generated\DataSourcesRestClient.cs (38)
97switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 191return message.Response; 193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 212switch (message.Response.Status) 216return message.Response; 218throw _clientDiagnostics.CreateRequestFailedException(message.Response); 251switch (message.Response.Status) 256using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 258return Response.FromValue(value, message.Response); 261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278switch (message.Response.Status) 283using var document = JsonDocument.Parse(message.Response.ContentStream); 285return Response.FromValue(value, message.Response); 288throw _clientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 324return Response.FromValue(value, message.Response); 327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 410switch (message.Response.Status) 415using var document = JsonDocument.Parse(message.Response.ContentStream); 417return Response.FromValue(value, message.Response); 420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DocumentsRestClient.cs (48)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 90switch (message.Response.Status) 95using var document = JsonDocument.Parse(message.Response.ContentStream); 97return Response.FromValue(value, message.Response); 100throw _clientDiagnostics.CreateRequestFailedException(message.Response); 138switch (message.Response.Status) 143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 145return Response.FromValue(value, message.Response); 148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165switch (message.Response.Status) 170using var document = JsonDocument.Parse(message.Response.ContentStream); 172return Response.FromValue(value, message.Response); 175throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 228return Response.FromValue(value, message.Response); 231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 249switch (message.Response.Status) 254using var document = JsonDocument.Parse(message.Response.ContentStream); 261return Response.FromValue(value, message.Response); 264throw _clientDiagnostics.CreateRequestFailedException(message.Response); 302switch (message.Response.Status) 307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 309return Response.FromValue(value, message.Response); 312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 336return Response.FromValue(value, message.Response); 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 385return Response.FromValue(value, message.Response); 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405switch (message.Response.Status) 411using var document = JsonDocument.Parse(message.Response.ContentStream); 413return Response.FromValue(value, message.Response); 416throw _clientDiagnostics.CreateRequestFailedException(message.Response); 454switch (message.Response.Status) 459using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 461return Response.FromValue(value, message.Response); 464throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexersRestClient.cs (64)
73switch (message.Response.Status) 76return message.Response; 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 98return message.Response; 100throw _clientDiagnostics.CreateRequestFailedException(message.Response); 146switch (message.Response.Status) 149return message.Response; 151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 170switch (message.Response.Status) 173return message.Response; 175throw _clientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 211return message.Response; 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 233return message.Response; 235throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 304using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 306return Response.FromValue(value, message.Response); 309throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 393return message.Response; 395throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 414switch (message.Response.Status) 418return message.Response; 420throw _clientDiagnostics.CreateRequestFailedException(message.Response); 453switch (message.Response.Status) 458using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 460return Response.FromValue(value, message.Response); 463throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 480switch (message.Response.Status) 485using var document = JsonDocument.Parse(message.Response.ContentStream); 487return Response.FromValue(value, message.Response); 490throw _clientDiagnostics.CreateRequestFailedException(message.Response); 519switch (message.Response.Status) 524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 526return Response.FromValue(value, message.Response); 529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 540switch (message.Response.Status) 545using var document = JsonDocument.Parse(message.Response.ContentStream); 547return Response.FromValue(value, message.Response); 550throw _clientDiagnostics.CreateRequestFailedException(message.Response); 585switch (message.Response.Status) 590using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 592return Response.FromValue(value, message.Response); 595throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw _clientDiagnostics.CreateRequestFailedException(message.Response); 655switch (message.Response.Status) 660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 662return Response.FromValue(value, message.Response); 665throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 682switch (message.Response.Status) 687using var document = JsonDocument.Parse(message.Response.ContentStream); 689return Response.FromValue(value, message.Response); 692throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexesRestClient.cs (54)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 140switch (message.Response.Status) 145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 166using var document = JsonDocument.Parse(message.Response.ContentStream); 168return Response.FromValue(value, message.Response); 171throw _clientDiagnostics.CreateRequestFailedException(message.Response); 229switch (message.Response.Status) 235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 237return Response.FromValue(value, message.Response); 240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 271using var document = JsonDocument.Parse(message.Response.ContentStream); 273return Response.FromValue(value, message.Response); 276throw _clientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 323return message.Response; 325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 348return message.Response; 350throw _clientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 410switch (message.Response.Status) 415using var document = JsonDocument.Parse(message.Response.ContentStream); 417return Response.FromValue(value, message.Response); 420throw _clientDiagnostics.CreateRequestFailedException(message.Response); 453switch (message.Response.Status) 458using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 460return Response.FromValue(value, message.Response); 463throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 480switch (message.Response.Status) 485using var document = JsonDocument.Parse(message.Response.ContentStream); 487return Response.FromValue(value, message.Response); 490throw _clientDiagnostics.CreateRequestFailedException(message.Response); 532switch (message.Response.Status) 537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 539return Response.FromValue(value, message.Response); 542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SearchServiceRestClient.cs (8)
63switch (message.Response.Status) 68using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 70return Response.FromValue(value, message.Response); 73throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 83switch (message.Response.Status) 88using var document = JsonDocument.Parse(message.Response.ContentStream); 90return Response.FromValue(value, message.Response); 93throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SkillsetsRestClient.cs (44)
103switch (message.Response.Status) 109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 111return Response.FromValue(value, message.Response); 114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 146using var document = JsonDocument.Parse(message.Response.ContentStream); 148return Response.FromValue(value, message.Response); 151throw _clientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 198return message.Response; 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 223return message.Response; 225throw _clientDiagnostics.CreateRequestFailedException(message.Response); 258switch (message.Response.Status) 263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 265return Response.FromValue(value, message.Response); 268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 285switch (message.Response.Status) 290using var document = JsonDocument.Parse(message.Response.ContentStream); 292return Response.FromValue(value, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 324switch (message.Response.Status) 329using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 331return Response.FromValue(value, message.Response); 334throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 345switch (message.Response.Status) 350using var document = JsonDocument.Parse(message.Response.ContentStream); 352return Response.FromValue(value, message.Response); 355throw _clientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 472return message.Response; 474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 496switch (message.Response.Status) 499return message.Response; 501throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SynonymMapsRestClient.cs (38)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 185return message.Response; 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 206switch (message.Response.Status) 210return message.Response; 212throw _clientDiagnostics.CreateRequestFailedException(message.Response); 245switch (message.Response.Status) 250using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 252return Response.FromValue(value, message.Response); 255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 272switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 318return Response.FromValue(value, message.Response); 321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 337using var document = JsonDocument.Parse(message.Response.ContentStream); 339return Response.FromValue(value, message.Response); 342throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 384return Response.FromValue(value, message.Response); 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 404switch (message.Response.Status) 409using var document = JsonDocument.Parse(message.Response.ContentStream); 411return Response.FromValue(value, message.Response); 414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
SearchClient.cs (22)
696switch (message.Response.Status) 700T value = await message.Response.ContentStream.DeserializeAsync<T>( 705return Response.FromValue(value, message.Response); 709await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 710ClientDiagnostics.CreateRequestFailedException(message.Response); 879switch (message.Response.Status) 885message.Response.ContentStream, 893results.ConfigurePaging(this, message.Response); 895return Response.FromValue(results, message.Response); 899await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 900ClientDiagnostics.CreateRequestFailedException(message.Response); 1050switch (message.Response.Status) 1055message.Response.ContentStream, 1060return Response.FromValue(suggestions, message.Response); 1064await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 1065ClientDiagnostics.CreateRequestFailedException(message.Response); 1350switch (message.Response.Status) 1357await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false) : 1358JsonDocument.Parse(message.Response.ContentStream, default); 1391return Response.FromValue(value, message.Response); 1395await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 1396ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Security.Attestation (93)
Generated\AttestationRestClient.cs (24)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw _clientDiagnostics.CreateRequestFailedException(message.Response); 142switch (message.Response.Status) 147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 149return Response.FromValue(value, message.Response); 152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 169switch (message.Response.Status) 174using var document = JsonDocument.Parse(message.Response.ContentStream); 176return Response.FromValue(value, message.Response); 179throw _clientDiagnostics.CreateRequestFailedException(message.Response); 214switch (message.Response.Status) 219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 221return Response.FromValue(value, message.Response); 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetadataConfigurationRestClient.cs (8)
55switch (message.Response.Status) 60using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 62return Response.FromValue(value, message.Response); 65throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 75switch (message.Response.Status) 80using var document = JsonDocument.Parse(message.Response.ContentStream); 82return Response.FromValue(value, message.Response); 85throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyCertificatesRestClient.cs (24)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw _clientDiagnostics.CreateRequestFailedException(message.Response); 124switch (message.Response.Status) 129using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 131return Response.FromValue(value, message.Response); 134throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyRestClient.cs (24)
61switch (message.Response.Status) 66using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 68return Response.FromValue(value, message.Response); 71throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 82switch (message.Response.Status) 87using var document = JsonDocument.Parse(message.Response.ContentStream); 89return Response.FromValue(value, message.Response); 92throw _clientDiagnostics.CreateRequestFailedException(message.Response); 127switch (message.Response.Status) 132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 134return Response.FromValue(value, message.Response); 137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 155switch (message.Response.Status) 160using var document = JsonDocument.Parse(message.Response.ContentStream); 162return Response.FromValue(value, message.Response); 165throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SigningCertificatesRestClient.cs (8)
55switch (message.Response.Status) 60using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 62return Response.FromValue(value, message.Response); 65throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 75switch (message.Response.Status) 80using var document = JsonDocument.Parse(message.Response.ContentStream); 82return Response.FromValue(value, message.Response); 85throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Security.ConfidentialLedger (8)
Generated\ConfidentialLedgerClient.cs (2)
1321return message.Response.Status switch 1334return message.Response.Status switch
Generated\ConfidentialLedgerIdentityServiceClient.cs (1)
140return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Security.KeyVault.Administration (125)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Generated\BackupRestoreRestClient.cs (40)
72var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response); 73switch (message.Response.Status) 76return ResponseWithHeaders.FromValue(headers, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 96var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response); 97switch (message.Response.Status) 100return ResponseWithHeaders.FromValue(headers, message.Response); 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 140switch (message.Response.Status) 145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response); 221var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response); 222switch (message.Response.Status) 225return ResponseWithHeaders.FromValue(headers, message.Response); 227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 245var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response); 246switch (message.Response.Status) 249return ResponseWithHeaders.FromValue(headers, message.Response); 251throw _clientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 296return Response.FromValue(value, message.Response); 299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 321switch (message.Response.Status) 326using var document = JsonDocument.Parse(message.Response.ContentStream); 328return Response.FromValue(value, message.Response); 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response); 378switch (message.Response.Status) 381return ResponseWithHeaders.FromValue(headers, message.Response); 383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 406var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response); 407switch (message.Response.Status) 410return ResponseWithHeaders.FromValue(headers, message.Response); 412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleAssignmentsRestClient.cs (38)
77switch (message.Response.Status) 81return message.Response; 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 114return message.Response; 116throw _clientDiagnostics.CreateRequestFailedException(message.Response); 169switch (message.Response.Status) 174using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 176return Response.FromValue(value, message.Response); 179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw _clientDiagnostics.CreateRequestFailedException(message.Response); 265switch (message.Response.Status) 270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 272return Response.FromValue(value, message.Response); 275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 302switch (message.Response.Status) 307using var document = JsonDocument.Parse(message.Response.ContentStream); 309return Response.FromValue(value, message.Response); 312throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 393using var document = JsonDocument.Parse(message.Response.ContentStream); 395return Response.FromValue(value, message.Response); 398throw _clientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 446return Response.FromValue(value, message.Response); 449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleDefinitionsRestClient.cs (38)
77switch (message.Response.Status) 81return message.Response; 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 114return message.Response; 116throw _clientDiagnostics.CreateRequestFailedException(message.Response); 169switch (message.Response.Status) 174using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 176return Response.FromValue(value, message.Response); 179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw _clientDiagnostics.CreateRequestFailedException(message.Response); 265switch (message.Response.Status) 270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 272return Response.FromValue(value, message.Response); 275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 302switch (message.Response.Status) 307using var document = JsonDocument.Parse(message.Response.ContentStream); 309return Response.FromValue(value, message.Response); 312throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 388switch (message.Response.Status) 393using var document = JsonDocument.Parse(message.Response.ContentStream); 395return Response.FromValue(value, message.Response); 398throw _clientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 446return Response.FromValue(value, message.Response); 449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Security.KeyVault.Certificates (4)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Azure.Security.KeyVault.Keys (4)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Azure.Security.KeyVault.Secrets (4)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Azure.Storage.Blobs (607)
Generated\AppendBlobRestClient.cs (32)
171var headers = new AppendBlobCreateHeaders(message.Response); 172switch (message.Response.Status) 175return ResponseWithHeaders.FromValue(headers, message.Response); 177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210var headers = new AppendBlobCreateHeaders(message.Response); 211switch (message.Response.Status) 214return ResponseWithHeaders.FromValue(headers, message.Response); 216throw _clientDiagnostics.CreateRequestFailedException(message.Response); 326var headers = new AppendBlobAppendBlockHeaders(message.Response); 327switch (message.Response.Status) 330return ResponseWithHeaders.FromValue(headers, message.Response); 332throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365var headers = new AppendBlobAppendBlockHeaders(message.Response); 366switch (message.Response.Status) 369return ResponseWithHeaders.FromValue(headers, message.Response); 371throw _clientDiagnostics.CreateRequestFailedException(message.Response); 510var headers = new AppendBlobAppendBlockFromUrlHeaders(message.Response); 511switch (message.Response.Status) 514return ResponseWithHeaders.FromValue(headers, message.Response); 516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 556var headers = new AppendBlobAppendBlockFromUrlHeaders(message.Response); 557switch (message.Response.Status) 560return ResponseWithHeaders.FromValue(headers, message.Response); 562throw _clientDiagnostics.CreateRequestFailedException(message.Response); 621var headers = new AppendBlobSealHeaders(message.Response); 622switch (message.Response.Status) 625return ResponseWithHeaders.FromValue(headers, message.Response); 627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644var headers = new AppendBlobSealHeaders(message.Response); 645switch (message.Response.Status) 648return ResponseWithHeaders.FromValue(headers, message.Response); 650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BlobRestClient.cs (188)
136var headers = new BlobDownloadHeaders(message.Response); 137switch (message.Response.Status) 143return ResponseWithHeaders.FromValue(value, headers, message.Response); 146return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173var headers = new BlobDownloadHeaders(message.Response); 174switch (message.Response.Status) 180return ResponseWithHeaders.FromValue(value, headers, message.Response); 183return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 268var headers = new BlobGetPropertiesHeaders(message.Response); 269switch (message.Response.Status) 272return ResponseWithHeaders.FromValue(headers, message.Response); 274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 296var headers = new BlobGetPropertiesHeaders(message.Response); 297switch (message.Response.Status) 300return ResponseWithHeaders.FromValue(headers, message.Response); 302throw _clientDiagnostics.CreateRequestFailedException(message.Response); 380var headers = new BlobDeleteHeaders(message.Response); 381switch (message.Response.Status) 384return ResponseWithHeaders.FromValue(headers, message.Response); 386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 407var headers = new BlobDeleteHeaders(message.Response); 408switch (message.Response.Status) 411return ResponseWithHeaders.FromValue(headers, message.Response); 413throw _clientDiagnostics.CreateRequestFailedException(message.Response); 442var headers = new BlobUndeleteHeaders(message.Response); 443switch (message.Response.Status) 446return ResponseWithHeaders.FromValue(headers, message.Response); 448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459var headers = new BlobUndeleteHeaders(message.Response); 460switch (message.Response.Status) 463return ResponseWithHeaders.FromValue(headers, message.Response); 465throw _clientDiagnostics.CreateRequestFailedException(message.Response); 501var headers = new BlobSetExpiryHeaders(message.Response); 502switch (message.Response.Status) 505return ResponseWithHeaders.FromValue(headers, message.Response); 507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 520var headers = new BlobSetExpiryHeaders(message.Response); 521switch (message.Response.Status) 524return ResponseWithHeaders.FromValue(headers, message.Response); 526throw _clientDiagnostics.CreateRequestFailedException(message.Response); 615var headers = new BlobSetHttpHeadersHeaders(message.Response); 616switch (message.Response.Status) 619return ResponseWithHeaders.FromValue(headers, message.Response); 621throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644var headers = new BlobSetHttpHeadersHeaders(message.Response); 645switch (message.Response.Status) 648return ResponseWithHeaders.FromValue(headers, message.Response); 650throw _clientDiagnostics.CreateRequestFailedException(message.Response); 694var headers = new BlobSetImmutabilityPolicyHeaders(message.Response); 695switch (message.Response.Status) 698return ResponseWithHeaders.FromValue(headers, message.Response); 700throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 714var headers = new BlobSetImmutabilityPolicyHeaders(message.Response); 715switch (message.Response.Status) 718return ResponseWithHeaders.FromValue(headers, message.Response); 720throw _clientDiagnostics.CreateRequestFailedException(message.Response); 749var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response); 750switch (message.Response.Status) 753return ResponseWithHeaders.FromValue(headers, message.Response); 755throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 766var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response); 767switch (message.Response.Status) 770return ResponseWithHeaders.FromValue(headers, message.Response); 772throw _clientDiagnostics.CreateRequestFailedException(message.Response); 803var headers = new BlobSetLegalHoldHeaders(message.Response); 804switch (message.Response.Status) 807return ResponseWithHeaders.FromValue(headers, message.Response); 809throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 821var headers = new BlobSetLegalHoldHeaders(message.Response); 822switch (message.Response.Status) 825return ResponseWithHeaders.FromValue(headers, message.Response); 827throw _clientDiagnostics.CreateRequestFailedException(message.Response); 911var headers = new BlobSetMetadataHeaders(message.Response); 912switch (message.Response.Status) 915return ResponseWithHeaders.FromValue(headers, message.Response); 917throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 939var headers = new BlobSetMetadataHeaders(message.Response); 940switch (message.Response.Status) 943return ResponseWithHeaders.FromValue(headers, message.Response); 945throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1010var headers = new BlobAcquireLeaseHeaders(message.Response); 1011switch (message.Response.Status) 1014return ResponseWithHeaders.FromValue(headers, message.Response); 1016throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1034var headers = new BlobAcquireLeaseHeaders(message.Response); 1035switch (message.Response.Status) 1038return ResponseWithHeaders.FromValue(headers, message.Response); 1040throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1103var headers = new BlobReleaseLeaseHeaders(message.Response); 1104switch (message.Response.Status) 1107return ResponseWithHeaders.FromValue(headers, message.Response); 1109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1132var headers = new BlobReleaseLeaseHeaders(message.Response); 1133switch (message.Response.Status) 1136return ResponseWithHeaders.FromValue(headers, message.Response); 1138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1201var headers = new BlobRenewLeaseHeaders(message.Response); 1202switch (message.Response.Status) 1205return ResponseWithHeaders.FromValue(headers, message.Response); 1207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1230var headers = new BlobRenewLeaseHeaders(message.Response); 1231switch (message.Response.Status) 1234return ResponseWithHeaders.FromValue(headers, message.Response); 1236throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1305var headers = new BlobChangeLeaseHeaders(message.Response); 1306switch (message.Response.Status) 1309return ResponseWithHeaders.FromValue(headers, message.Response); 1311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1339var headers = new BlobChangeLeaseHeaders(message.Response); 1340switch (message.Response.Status) 1343return ResponseWithHeaders.FromValue(headers, message.Response); 1345throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1405var headers = new BlobBreakLeaseHeaders(message.Response); 1406switch (message.Response.Status) 1409return ResponseWithHeaders.FromValue(headers, message.Response); 1411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1428var headers = new BlobBreakLeaseHeaders(message.Response); 1429switch (message.Response.Status) 1432return ResponseWithHeaders.FromValue(headers, message.Response); 1434throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1518var headers = new BlobCreateSnapshotHeaders(message.Response); 1519switch (message.Response.Status) 1522return ResponseWithHeaders.FromValue(headers, message.Response); 1524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1546var headers = new BlobCreateSnapshotHeaders(message.Response); 1547switch (message.Response.Status) 1550return ResponseWithHeaders.FromValue(headers, message.Response); 1552throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1683var headers = new BlobStartCopyFromURLHeaders(message.Response); 1684switch (message.Response.Status) 1687return ResponseWithHeaders.FromValue(headers, message.Response); 1689throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1726var headers = new BlobStartCopyFromURLHeaders(message.Response); 1727switch (message.Response.Status) 1730return ResponseWithHeaders.FromValue(headers, message.Response); 1732throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1864var headers = new BlobCopyFromURLHeaders(message.Response); 1865switch (message.Response.Status) 1868return ResponseWithHeaders.FromValue(headers, message.Response); 1870throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1907var headers = new BlobCopyFromURLHeaders(message.Response); 1908switch (message.Response.Status) 1911return ResponseWithHeaders.FromValue(headers, message.Response); 1913throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1956var headers = new BlobAbortCopyFromURLHeaders(message.Response); 1957switch (message.Response.Status) 1960return ResponseWithHeaders.FromValue(headers, message.Response); 1962throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1981var headers = new BlobAbortCopyFromURLHeaders(message.Response); 1982switch (message.Response.Status) 1985return ResponseWithHeaders.FromValue(headers, message.Response); 1987throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2043var headers = new BlobSetTierHeaders(message.Response); 2044switch (message.Response.Status) 2048return ResponseWithHeaders.FromValue(headers, message.Response); 2050throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2067var headers = new BlobSetTierHeaders(message.Response); 2068switch (message.Response.Status) 2072return ResponseWithHeaders.FromValue(headers, message.Response); 2074throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2162var headers = new BlobQueryHeaders(message.Response); 2163switch (message.Response.Status) 2169return ResponseWithHeaders.FromValue(value, headers, message.Response); 2172throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2194var headers = new BlobQueryHeaders(message.Response); 2195switch (message.Response.Status) 2201return ResponseWithHeaders.FromValue(value, headers, message.Response); 2204throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2253var headers = new BlobGetTagsHeaders(message.Response); 2254switch (message.Response.Status) 2259var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 2264return ResponseWithHeaders.FromValue(value, headers, message.Response); 2267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2282var headers = new BlobGetTagsHeaders(message.Response); 2283switch (message.Response.Status) 2288var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 2293return ResponseWithHeaders.FromValue(value, headers, message.Response); 2296throw _clientDiagnostics.CreateRequestFailedException(message.Response); 2358var headers = new BlobSetTagsHeaders(message.Response); 2359switch (message.Response.Status) 2362return ResponseWithHeaders.FromValue(headers, message.Response); 2364throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2381var headers = new BlobSetTagsHeaders(message.Response); 2382switch (message.Response.Status) 2385return ResponseWithHeaders.FromValue(headers, message.Response); 2387throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BlockBlobRestClient.cs (50)
192var headers = new BlockBlobUploadHeaders(message.Response); 193switch (message.Response.Status) 196return ResponseWithHeaders.FromValue(headers, message.Response); 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240var headers = new BlockBlobUploadHeaders(message.Response); 241switch (message.Response.Status) 244return ResponseWithHeaders.FromValue(headers, message.Response); 246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 420var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response); 421switch (message.Response.Status) 424return ResponseWithHeaders.FromValue(headers, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 473var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response); 474switch (message.Response.Status) 477return ResponseWithHeaders.FromValue(headers, message.Response); 479throw _clientDiagnostics.CreateRequestFailedException(message.Response); 560var headers = new BlockBlobStageBlockHeaders(message.Response); 561switch (message.Response.Status) 564return ResponseWithHeaders.FromValue(headers, message.Response); 566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 597var headers = new BlockBlobStageBlockHeaders(message.Response); 598switch (message.Response.Status) 601return ResponseWithHeaders.FromValue(headers, message.Response); 603throw _clientDiagnostics.CreateRequestFailedException(message.Response); 712var headers = new BlockBlobStageBlockFromURLHeaders(message.Response); 713switch (message.Response.Status) 716return ResponseWithHeaders.FromValue(headers, message.Response); 718throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755var headers = new BlockBlobStageBlockFromURLHeaders(message.Response); 756switch (message.Response.Status) 759return ResponseWithHeaders.FromValue(headers, message.Response); 761throw _clientDiagnostics.CreateRequestFailedException(message.Response); 921var headers = new BlockBlobCommitBlockListHeaders(message.Response); 922switch (message.Response.Status) 925return ResponseWithHeaders.FromValue(headers, message.Response); 927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 969var headers = new BlockBlobCommitBlockListHeaders(message.Response); 970switch (message.Response.Status) 973return ResponseWithHeaders.FromValue(headers, message.Response); 975throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1021var headers = new BlockBlobGetBlockListHeaders(message.Response); 1022switch (message.Response.Status) 1027var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1032return ResponseWithHeaders.FromValue(value, headers, message.Response); 1035throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1050var headers = new BlockBlobGetBlockListHeaders(message.Response); 1051switch (message.Response.Status) 1056var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1061return ResponseWithHeaders.FromValue(value, headers, message.Response); 1064throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRestClient.cs (164)
86var headers = new ContainerCreateHeaders(message.Response); 87switch (message.Response.Status) 90return ResponseWithHeaders.FromValue(headers, message.Response); 92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107var headers = new ContainerCreateHeaders(message.Response); 108switch (message.Response.Status) 111return ResponseWithHeaders.FromValue(headers, message.Response); 113throw _clientDiagnostics.CreateRequestFailedException(message.Response); 147var headers = new ContainerGetPropertiesHeaders(message.Response); 148switch (message.Response.Status) 151return ResponseWithHeaders.FromValue(headers, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165var headers = new ContainerGetPropertiesHeaders(message.Response); 166switch (message.Response.Status) 169return ResponseWithHeaders.FromValue(headers, message.Response); 171throw _clientDiagnostics.CreateRequestFailedException(message.Response); 215var headers = new ContainerDeleteHeaders(message.Response); 216switch (message.Response.Status) 219return ResponseWithHeaders.FromValue(headers, message.Response); 221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235var headers = new ContainerDeleteHeaders(message.Response); 236switch (message.Response.Status) 239return ResponseWithHeaders.FromValue(headers, message.Response); 241throw _clientDiagnostics.CreateRequestFailedException(message.Response); 286var headers = new ContainerSetMetadataHeaders(message.Response); 287switch (message.Response.Status) 290return ResponseWithHeaders.FromValue(headers, message.Response); 292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 306var headers = new ContainerSetMetadataHeaders(message.Response); 307switch (message.Response.Status) 310return ResponseWithHeaders.FromValue(headers, message.Response); 312throw _clientDiagnostics.CreateRequestFailedException(message.Response); 347var headers = new ContainerGetAccessPolicyHeaders(message.Response); 348switch (message.Response.Status) 353var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 363return ResponseWithHeaders.FromValue(value, headers, message.Response); 366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 378var headers = new ContainerGetAccessPolicyHeaders(message.Response); 379switch (message.Response.Status) 384var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 394return ResponseWithHeaders.FromValue(value, headers, message.Response); 397throw _clientDiagnostics.CreateRequestFailedException(message.Response); 460var headers = new ContainerSetAccessPolicyHeaders(message.Response); 461switch (message.Response.Status) 464return ResponseWithHeaders.FromValue(headers, message.Response); 466throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482var headers = new ContainerSetAccessPolicyHeaders(message.Response); 483switch (message.Response.Status) 486return ResponseWithHeaders.FromValue(headers, message.Response); 488throw _clientDiagnostics.CreateRequestFailedException(message.Response); 528var headers = new ContainerRestoreHeaders(message.Response); 529switch (message.Response.Status) 532return ResponseWithHeaders.FromValue(headers, message.Response); 534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547var headers = new ContainerRestoreHeaders(message.Response); 548switch (message.Response.Status) 551return ResponseWithHeaders.FromValue(headers, message.Response); 553throw _clientDiagnostics.CreateRequestFailedException(message.Response); 596var headers = new ContainerRenameHeaders(message.Response); 597switch (message.Response.Status) 600return ResponseWithHeaders.FromValue(headers, message.Response); 602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 621var headers = new ContainerRenameHeaders(message.Response); 622switch (message.Response.Status) 625return ResponseWithHeaders.FromValue(headers, message.Response); 627throw _clientDiagnostics.CreateRequestFailedException(message.Response); 673var headers = new ContainerSubmitBatchHeaders(message.Response); 674switch (message.Response.Status) 679return ResponseWithHeaders.FromValue(value, headers, message.Response); 682throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 706var headers = new ContainerSubmitBatchHeaders(message.Response); 707switch (message.Response.Status) 712return ResponseWithHeaders.FromValue(value, headers, message.Response); 715throw _clientDiagnostics.CreateRequestFailedException(message.Response); 760var headers = new ContainerFilterBlobsHeaders(message.Response); 761switch (message.Response.Status) 766var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 771return ResponseWithHeaders.FromValue(value, headers, message.Response); 774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 788var headers = new ContainerFilterBlobsHeaders(message.Response); 789switch (message.Response.Status) 794var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 799return ResponseWithHeaders.FromValue(value, headers, message.Response); 802throw _clientDiagnostics.CreateRequestFailedException(message.Response); 853var headers = new ContainerAcquireLeaseHeaders(message.Response); 854switch (message.Response.Status) 857return ResponseWithHeaders.FromValue(headers, message.Response); 859throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 874var headers = new ContainerAcquireLeaseHeaders(message.Response); 875switch (message.Response.Status) 878return ResponseWithHeaders.FromValue(headers, message.Response); 880throw _clientDiagnostics.CreateRequestFailedException(message.Response); 929var headers = new ContainerReleaseLeaseHeaders(message.Response); 930switch (message.Response.Status) 933return ResponseWithHeaders.FromValue(headers, message.Response); 935throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 955var headers = new ContainerReleaseLeaseHeaders(message.Response); 956switch (message.Response.Status) 959return ResponseWithHeaders.FromValue(headers, message.Response); 961throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1010var headers = new ContainerRenewLeaseHeaders(message.Response); 1011switch (message.Response.Status) 1014return ResponseWithHeaders.FromValue(headers, message.Response); 1016throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1036var headers = new ContainerRenewLeaseHeaders(message.Response); 1037switch (message.Response.Status) 1040return ResponseWithHeaders.FromValue(headers, message.Response); 1042throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1088var headers = new ContainerBreakLeaseHeaders(message.Response); 1089switch (message.Response.Status) 1092return ResponseWithHeaders.FromValue(headers, message.Response); 1094throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1108var headers = new ContainerBreakLeaseHeaders(message.Response); 1109switch (message.Response.Status) 1112return ResponseWithHeaders.FromValue(headers, message.Response); 1114throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1169var headers = new ContainerChangeLeaseHeaders(message.Response); 1170switch (message.Response.Status) 1173return ResponseWithHeaders.FromValue(headers, message.Response); 1175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1200var headers = new ContainerChangeLeaseHeaders(message.Response); 1201switch (message.Response.Status) 1204return ResponseWithHeaders.FromValue(headers, message.Response); 1206throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1256var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1257switch (message.Response.Status) 1262var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1267return ResponseWithHeaders.FromValue(value, headers, message.Response); 1270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1285var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1286switch (message.Response.Status) 1291var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1296return ResponseWithHeaders.FromValue(value, headers, message.Response); 1299throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1354var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1355switch (message.Response.Status) 1360var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1365return ResponseWithHeaders.FromValue(value, headers, message.Response); 1368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1384var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1385switch (message.Response.Status) 1390var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1395return ResponseWithHeaders.FromValue(value, headers, message.Response); 1398throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1434var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1435switch (message.Response.Status) 1440var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1445return ResponseWithHeaders.FromValue(value, headers, message.Response); 1448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1470var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1471switch (message.Response.Status) 1476var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1481return ResponseWithHeaders.FromValue(value, headers, message.Response); 1484throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1521var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1522switch (message.Response.Status) 1527var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1532return ResponseWithHeaders.FromValue(value, headers, message.Response); 1535throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1558var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1559switch (message.Response.Status) 1564var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1569return ResponseWithHeaders.FromValue(value, headers, message.Response); 1572throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PageBlobRestClient.cs (76)
184var headers = new PageBlobCreateHeaders(message.Response); 185switch (message.Response.Status) 188return ResponseWithHeaders.FromValue(headers, message.Response); 190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 226var headers = new PageBlobCreateHeaders(message.Response); 227switch (message.Response.Status) 230return ResponseWithHeaders.FromValue(headers, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 353var headers = new PageBlobUploadPagesHeaders(message.Response); 354switch (message.Response.Status) 357return ResponseWithHeaders.FromValue(headers, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394var headers = new PageBlobUploadPagesHeaders(message.Response); 395switch (message.Response.Status) 398return ResponseWithHeaders.FromValue(headers, message.Response); 400throw _clientDiagnostics.CreateRequestFailedException(message.Response); 501var headers = new PageBlobClearPagesHeaders(message.Response); 502switch (message.Response.Status) 505return ResponseWithHeaders.FromValue(headers, message.Response); 507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 533var headers = new PageBlobClearPagesHeaders(message.Response); 534switch (message.Response.Status) 537return ResponseWithHeaders.FromValue(headers, message.Response); 539throw _clientDiagnostics.CreateRequestFailedException(message.Response); 690var headers = new PageBlobUploadPagesFromURLHeaders(message.Response); 691switch (message.Response.Status) 694return ResponseWithHeaders.FromValue(headers, message.Response); 696throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 745var headers = new PageBlobUploadPagesFromURLHeaders(message.Response); 746switch (message.Response.Status) 749return ResponseWithHeaders.FromValue(headers, message.Response); 751throw _clientDiagnostics.CreateRequestFailedException(message.Response); 820var headers = new PageBlobGetPageRangesHeaders(message.Response); 821switch (message.Response.Status) 826var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 831return ResponseWithHeaders.FromValue(value, headers, message.Response); 834throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 853var headers = new PageBlobGetPageRangesHeaders(message.Response); 854switch (message.Response.Status) 859var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 864return ResponseWithHeaders.FromValue(value, headers, message.Response); 867throw _clientDiagnostics.CreateRequestFailedException(message.Response); 946var headers = new PageBlobGetPageRangesDiffHeaders(message.Response); 947switch (message.Response.Status) 952var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 957return ResponseWithHeaders.FromValue(value, headers, message.Response); 960throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 981var headers = new PageBlobGetPageRangesDiffHeaders(message.Response); 982switch (message.Response.Status) 987var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 992return ResponseWithHeaders.FromValue(value, headers, message.Response); 995throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1076var headers = new PageBlobResizeHeaders(message.Response); 1077switch (message.Response.Status) 1080return ResponseWithHeaders.FromValue(headers, message.Response); 1082throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1104var headers = new PageBlobResizeHeaders(message.Response); 1105switch (message.Response.Status) 1108return ResponseWithHeaders.FromValue(headers, message.Response); 1110throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1176var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response); 1177switch (message.Response.Status) 1180return ResponseWithHeaders.FromValue(headers, message.Response); 1182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1201var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response); 1202switch (message.Response.Status) 1205return ResponseWithHeaders.FromValue(headers, message.Response); 1207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1269var headers = new PageBlobCopyIncrementalHeaders(message.Response); 1270switch (message.Response.Status) 1273return ResponseWithHeaders.FromValue(headers, message.Response); 1275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1298var headers = new PageBlobCopyIncrementalHeaders(message.Response); 1299switch (message.Response.Status) 1302return ResponseWithHeaders.FromValue(headers, message.Response); 1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (84)
79var headers = new ServiceSetPropertiesHeaders(message.Response); 80switch (message.Response.Status) 83return ResponseWithHeaders.FromValue(headers, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103var headers = new ServiceSetPropertiesHeaders(message.Response); 104switch (message.Response.Status) 107return ResponseWithHeaders.FromValue(headers, message.Response); 109throw _clientDiagnostics.CreateRequestFailedException(message.Response); 140var headers = new ServiceGetPropertiesHeaders(message.Response); 141switch (message.Response.Status) 146var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 151return ResponseWithHeaders.FromValue(value, headers, message.Response); 154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165var headers = new ServiceGetPropertiesHeaders(message.Response); 166switch (message.Response.Status) 171var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 176return ResponseWithHeaders.FromValue(value, headers, message.Response); 179throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210var headers = new ServiceGetStatisticsHeaders(message.Response); 211switch (message.Response.Status) 216var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 221return ResponseWithHeaders.FromValue(value, headers, message.Response); 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235var headers = new ServiceGetStatisticsHeaders(message.Response); 236switch (message.Response.Status) 241var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 246return ResponseWithHeaders.FromValue(value, headers, message.Response); 249throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299var headers = new ServiceListContainersSegmentHeaders(message.Response); 300switch (message.Response.Status) 305var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 310return ResponseWithHeaders.FromValue(value, headers, message.Response); 313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328var headers = new ServiceListContainersSegmentHeaders(message.Response); 329switch (message.Response.Status) 334var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 339return ResponseWithHeaders.FromValue(value, headers, message.Response); 342throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384var headers = new ServiceGetUserDelegationKeyHeaders(message.Response); 385switch (message.Response.Status) 390var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 395return ResponseWithHeaders.FromValue(value, headers, message.Response); 398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 416var headers = new ServiceGetUserDelegationKeyHeaders(message.Response); 417switch (message.Response.Status) 422var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 427return ResponseWithHeaders.FromValue(value, headers, message.Response); 430throw _clientDiagnostics.CreateRequestFailedException(message.Response); 456var headers = new ServiceGetAccountInfoHeaders(message.Response); 457switch (message.Response.Status) 460return ResponseWithHeaders.FromValue(headers, message.Response); 462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 472var headers = new ServiceGetAccountInfoHeaders(message.Response); 473switch (message.Response.Status) 476return ResponseWithHeaders.FromValue(headers, message.Response); 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 524var headers = new ServiceSubmitBatchHeaders(message.Response); 525switch (message.Response.Status) 530return ResponseWithHeaders.FromValue(value, headers, message.Response); 533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 557var headers = new ServiceSubmitBatchHeaders(message.Response); 558switch (message.Response.Status) 563return ResponseWithHeaders.FromValue(value, headers, message.Response); 566throw _clientDiagnostics.CreateRequestFailedException(message.Response); 611var headers = new ServiceFilterBlobsHeaders(message.Response); 612switch (message.Response.Status) 617var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 622return ResponseWithHeaders.FromValue(value, headers, message.Response); 625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 639var headers = new ServiceFilterBlobsHeaders(message.Response); 640switch (message.Response.Status) 645var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 650return ResponseWithHeaders.FromValue(value, headers, message.Response); 653throw _clientDiagnostics.CreateRequestFailedException(message.Response); 689var headers = new ServiceListContainersSegmentHeaders(message.Response); 690switch (message.Response.Status) 695var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 700return ResponseWithHeaders.FromValue(value, headers, message.Response); 703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 725var headers = new ServiceListContainersSegmentHeaders(message.Response); 726switch (message.Response.Status) 731var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 736return ResponseWithHeaders.FromValue(value, headers, message.Response); 739throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (1)
79var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Blobs.Batch (37)
Generated\BlobRestClient.cs (16)
110var headers = new BlobSetAccessTierHeaders(message.Response); 111switch (message.Response.Status) 115return ResponseWithHeaders.FromValue(headers, message.Response); 117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144var headers = new BlobSetAccessTierHeaders(message.Response); 145switch (message.Response.Status) 149return ResponseWithHeaders.FromValue(headers, message.Response); 151throw _clientDiagnostics.CreateRequestFailedException(message.Response); 243var headers = new BlobDeleteHeaders(message.Response); 244switch (message.Response.Status) 247return ResponseWithHeaders.FromValue(headers, message.Response); 249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280var headers = new BlobDeleteHeaders(message.Response); 281switch (message.Response.Status) 284return ResponseWithHeaders.FromValue(headers, message.Response); 286throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRestClient.cs (8)
63var headers = new ContainerSubmitBatchHeaders(message.Response); 64switch (message.Response.Status) 69return ResponseWithHeaders.FromValue(value, headers, message.Response); 72throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101var headers = new ContainerSubmitBatchHeaders(message.Response); 102switch (message.Response.Status) 107return ResponseWithHeaders.FromValue(value, headers, message.Response); 110throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (8)
58var headers = new ServiceSubmitBatchHeaders(message.Response); 59switch (message.Response.Status) 64return ResponseWithHeaders.FromValue(value, headers, message.Response); 67throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 91var headers = new ServiceSubmitBatchHeaders(message.Response); 92switch (message.Response.Status) 97return ResponseWithHeaders.FromValue(value, headers, message.Response); 100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Storage.Blobs.Batch.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.Batch.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.ChangeFeed.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.Perf (2)
Scenarios\DownloadSasUriHttpPipeline.cs (2)
29message.Response.ContentStream.CopyTo(Stream.Null, BufferSize); 36await message.Response.ContentStream.CopyToAsync(Stream.Null, BufferSize, cancellationToken);
Azure.Storage.Blobs.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Common (6)
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (1)
79var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Common.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Common.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.DataLake (187)
Generated\FileSystemRestClient.cs (62)
74var headers = new FileSystemCreateHeaders(message.Response); 75switch (message.Response.Status) 78return ResponseWithHeaders.FromValue(headers, message.Response); 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92var headers = new FileSystemCreateHeaders(message.Response); 93switch (message.Response.Status) 96return ResponseWithHeaders.FromValue(headers, message.Response); 98throw _clientDiagnostics.CreateRequestFailedException(message.Response); 142var headers = new FileSystemSetPropertiesHeaders(message.Response); 143switch (message.Response.Status) 146return ResponseWithHeaders.FromValue(headers, message.Response); 148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162var headers = new FileSystemSetPropertiesHeaders(message.Response); 163switch (message.Response.Status) 166return ResponseWithHeaders.FromValue(headers, message.Response); 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 197var headers = new FileSystemGetPropertiesHeaders(message.Response); 198switch (message.Response.Status) 201return ResponseWithHeaders.FromValue(headers, message.Response); 203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214var headers = new FileSystemGetPropertiesHeaders(message.Response); 215switch (message.Response.Status) 218return ResponseWithHeaders.FromValue(headers, message.Response); 220throw _clientDiagnostics.CreateRequestFailedException(message.Response); 259var headers = new FileSystemDeleteHeaders(message.Response); 260switch (message.Response.Status) 263return ResponseWithHeaders.FromValue(headers, message.Response); 265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278var headers = new FileSystemDeleteHeaders(message.Response); 279switch (message.Response.Status) 282return ResponseWithHeaders.FromValue(headers, message.Response); 284throw _clientDiagnostics.CreateRequestFailedException(message.Response); 335var headers = new FileSystemListPathsHeaders(message.Response); 336switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return ResponseWithHeaders.FromValue(value, headers, message.Response); 346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 362var headers = new FileSystemListPathsHeaders(message.Response); 363switch (message.Response.Status) 368using var document = JsonDocument.Parse(message.Response.ContentStream); 370return ResponseWithHeaders.FromValue(value, headers, message.Response); 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 429var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 430switch (message.Response.Status) 435var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 440return ResponseWithHeaders.FromValue(value, headers, message.Response); 443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 460switch (message.Response.Status) 465var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 470return ResponseWithHeaders.FromValue(value, headers, message.Response); 473throw _clientDiagnostics.CreateRequestFailedException(message.Response); 510var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 511switch (message.Response.Status) 516var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 521return ResponseWithHeaders.FromValue(value, headers, message.Response); 524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 548switch (message.Response.Status) 553var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 558return ResponseWithHeaders.FromValue(value, headers, message.Response); 561throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PathRestClient.cs (102)
174var headers = new PathCreateHeaders(message.Response); 175switch (message.Response.Status) 178return ResponseWithHeaders.FromValue(headers, message.Response); 180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213var headers = new PathCreateHeaders(message.Response); 214switch (message.Response.Status) 217return ResponseWithHeaders.FromValue(headers, message.Response); 219throw _clientDiagnostics.CreateRequestFailedException(message.Response); 375var headers = new PathUpdateHeaders(message.Response); 376switch (message.Response.Status) 381using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 383return ResponseWithHeaders.FromValue(value, headers, message.Response); 386return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response); 388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431var headers = new PathUpdateHeaders(message.Response); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return ResponseWithHeaders.FromValue(value, headers, message.Response); 442return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response); 444throw _clientDiagnostics.CreateRequestFailedException(message.Response); 514var headers = new PathLeaseHeaders(message.Response); 515switch (message.Response.Status) 520return ResponseWithHeaders.FromValue(headers, message.Response); 522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 542var headers = new PathLeaseHeaders(message.Response); 543switch (message.Response.Status) 548return ResponseWithHeaders.FromValue(headers, message.Response); 550throw _clientDiagnostics.CreateRequestFailedException(message.Response); 614var headers = new PathReadHeaders(message.Response); 615switch (message.Response.Status) 621return ResponseWithHeaders.FromValue(value, headers, message.Response); 624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 642var headers = new PathReadHeaders(message.Response); 643switch (message.Response.Status) 649return ResponseWithHeaders.FromValue(value, headers, message.Response); 652throw _clientDiagnostics.CreateRequestFailedException(message.Response); 715var headers = new PathGetPropertiesHeaders(message.Response); 716switch (message.Response.Status) 719return ResponseWithHeaders.FromValue(headers, message.Response); 721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 739var headers = new PathGetPropertiesHeaders(message.Response); 740switch (message.Response.Status) 743return ResponseWithHeaders.FromValue(headers, message.Response); 745throw _clientDiagnostics.CreateRequestFailedException(message.Response); 808var headers = new PathDeleteHeaders(message.Response); 809switch (message.Response.Status) 812return ResponseWithHeaders.FromValue(headers, message.Response); 814throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 832var headers = new PathDeleteHeaders(message.Response); 833switch (message.Response.Status) 836return ResponseWithHeaders.FromValue(headers, message.Response); 838throw _clientDiagnostics.CreateRequestFailedException(message.Response); 912var headers = new PathSetAccessControlHeaders(message.Response); 913switch (message.Response.Status) 916return ResponseWithHeaders.FromValue(headers, message.Response); 918throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 938var headers = new PathSetAccessControlHeaders(message.Response); 939switch (message.Response.Status) 942return ResponseWithHeaders.FromValue(headers, message.Response); 944throw _clientDiagnostics.CreateRequestFailedException(message.Response); 995var headers = new PathSetAccessControlRecursiveHeaders(message.Response); 996switch (message.Response.Status) 1001using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1003return ResponseWithHeaders.FromValue(value, headers, message.Response); 1006throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1022var headers = new PathSetAccessControlRecursiveHeaders(message.Response); 1023switch (message.Response.Status) 1028using var document = JsonDocument.Parse(message.Response.ContentStream); 1030return ResponseWithHeaders.FromValue(value, headers, message.Response); 1033throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1133var headers = new PathFlushDataHeaders(message.Response); 1134switch (message.Response.Status) 1137return ResponseWithHeaders.FromValue(headers, message.Response); 1139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1165var headers = new PathFlushDataHeaders(message.Response); 1166switch (message.Response.Status) 1169return ResponseWithHeaders.FromValue(headers, message.Response); 1171throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1234var headers = new PathAppendDataHeaders(message.Response); 1235switch (message.Response.Status) 1238return ResponseWithHeaders.FromValue(headers, message.Response); 1240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1263var headers = new PathAppendDataHeaders(message.Response); 1264switch (message.Response.Status) 1267return ResponseWithHeaders.FromValue(headers, message.Response); 1269throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1305var headers = new PathSetExpiryHeaders(message.Response); 1306switch (message.Response.Status) 1309return ResponseWithHeaders.FromValue(headers, message.Response); 1311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1324var headers = new PathSetExpiryHeaders(message.Response); 1325switch (message.Response.Status) 1328return ResponseWithHeaders.FromValue(headers, message.Response); 1330throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1364var headers = new PathUndeleteHeaders(message.Response); 1365switch (message.Response.Status) 1368return ResponseWithHeaders.FromValue(headers, message.Response); 1370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1382var headers = new PathUndeleteHeaders(message.Response); 1383switch (message.Response.Status) 1386return ResponseWithHeaders.FromValue(headers, message.Response); 1388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (10)
80var headers = new ServiceListFileSystemsHeaders(message.Response); 81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return ResponseWithHeaders.FromValue(value, headers, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105var headers = new ServiceListFileSystemsHeaders(message.Response); 106switch (message.Response.Status) 111using var document = JsonDocument.Parse(message.Response.ContentStream); 113return ResponseWithHeaders.FromValue(value, headers, message.Response); 116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (1)
79var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Files.DataLake.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.DataLake.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.Shares (427)
Generated\DirectoryRestClient.cs (86)
100var headers = new DirectoryCreateHeaders(message.Response); 101switch (message.Response.Status) 104return ResponseWithHeaders.FromValue(headers, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137var headers = new DirectoryCreateHeaders(message.Response); 138switch (message.Response.Status) 141return ResponseWithHeaders.FromValue(headers, message.Response); 143throw _clientDiagnostics.CreateRequestFailedException(message.Response); 177var headers = new DirectoryGetPropertiesHeaders(message.Response); 178switch (message.Response.Status) 181return ResponseWithHeaders.FromValue(headers, message.Response); 183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 195var headers = new DirectoryGetPropertiesHeaders(message.Response); 196switch (message.Response.Status) 199return ResponseWithHeaders.FromValue(headers, message.Response); 201throw _clientDiagnostics.CreateRequestFailedException(message.Response); 230var headers = new DirectoryDeleteHeaders(message.Response); 231switch (message.Response.Status) 234return ResponseWithHeaders.FromValue(headers, message.Response); 236throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247var headers = new DirectoryDeleteHeaders(message.Response); 248switch (message.Response.Status) 251return ResponseWithHeaders.FromValue(headers, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 313var headers = new DirectorySetPropertiesHeaders(message.Response); 314switch (message.Response.Status) 317return ResponseWithHeaders.FromValue(headers, message.Response); 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 349var headers = new DirectorySetPropertiesHeaders(message.Response); 350switch (message.Response.Status) 353return ResponseWithHeaders.FromValue(headers, message.Response); 355throw _clientDiagnostics.CreateRequestFailedException(message.Response); 390var headers = new DirectorySetMetadataHeaders(message.Response); 391switch (message.Response.Status) 394return ResponseWithHeaders.FromValue(headers, message.Response); 396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 408var headers = new DirectorySetMetadataHeaders(message.Response); 409switch (message.Response.Status) 412return ResponseWithHeaders.FromValue(headers, message.Response); 414throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 475switch (message.Response.Status) 480var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 485return ResponseWithHeaders.FromValue(value, headers, message.Response); 488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 505var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 506switch (message.Response.Status) 511var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 516return ResponseWithHeaders.FromValue(value, headers, message.Response); 519throw _clientDiagnostics.CreateRequestFailedException(message.Response); 568var headers = new DirectoryListHandlesHeaders(message.Response); 569switch (message.Response.Status) 574var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 579return ResponseWithHeaders.FromValue(value, headers, message.Response); 582throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 597var headers = new DirectoryListHandlesHeaders(message.Response); 598switch (message.Response.Status) 603var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 608return ResponseWithHeaders.FromValue(value, headers, message.Response); 611throw _clientDiagnostics.CreateRequestFailedException(message.Response); 663var headers = new DirectoryForceCloseHandlesHeaders(message.Response); 664switch (message.Response.Status) 667return ResponseWithHeaders.FromValue(headers, message.Response); 669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 690var headers = new DirectoryForceCloseHandlesHeaders(message.Response); 691switch (message.Response.Status) 694return ResponseWithHeaders.FromValue(headers, message.Response); 696throw _clientDiagnostics.CreateRequestFailedException(message.Response); 782var headers = new DirectoryRenameHeaders(message.Response); 783switch (message.Response.Status) 786return ResponseWithHeaders.FromValue(headers, message.Response); 788throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 814var headers = new DirectoryRenameHeaders(message.Response); 815switch (message.Response.Status) 818return ResponseWithHeaders.FromValue(headers, message.Response); 820throw _clientDiagnostics.CreateRequestFailedException(message.Response); 862var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 863switch (message.Response.Status) 868var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 873return ResponseWithHeaders.FromValue(value, headers, message.Response); 876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 900var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 901switch (message.Response.Status) 906var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 911return ResponseWithHeaders.FromValue(value, headers, message.Response); 914throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FileRestClient.cs (148)
136var headers = new FileCreateHeaders(message.Response); 137switch (message.Response.Status) 140return ResponseWithHeaders.FromValue(headers, message.Response); 142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 176var headers = new FileCreateHeaders(message.Response); 177switch (message.Response.Status) 180return ResponseWithHeaders.FromValue(headers, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response); 226var headers = new FileDownloadHeaders(message.Response); 227switch (message.Response.Status) 233return ResponseWithHeaders.FromValue(value, headers, message.Response); 236throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250var headers = new FileDownloadHeaders(message.Response); 251switch (message.Response.Status) 257return ResponseWithHeaders.FromValue(value, headers, message.Response); 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298var headers = new FileGetPropertiesHeaders(message.Response); 299switch (message.Response.Status) 302return ResponseWithHeaders.FromValue(headers, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 317var headers = new FileGetPropertiesHeaders(message.Response); 318switch (message.Response.Status) 321return ResponseWithHeaders.FromValue(headers, message.Response); 323throw _clientDiagnostics.CreateRequestFailedException(message.Response); 356var headers = new FileDeleteHeaders(message.Response); 357switch (message.Response.Status) 360return ResponseWithHeaders.FromValue(headers, message.Response); 362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 374var headers = new FileDeleteHeaders(message.Response); 375switch (message.Response.Status) 378return ResponseWithHeaders.FromValue(headers, message.Response); 380throw _clientDiagnostics.CreateRequestFailedException(message.Response); 474var headers = new FileSetHttpHeadersHeaders(message.Response); 475switch (message.Response.Status) 478return ResponseWithHeaders.FromValue(headers, message.Response); 480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513var headers = new FileSetHttpHeadersHeaders(message.Response); 514switch (message.Response.Status) 517return ResponseWithHeaders.FromValue(headers, message.Response); 519throw _clientDiagnostics.CreateRequestFailedException(message.Response); 558var headers = new FileSetMetadataHeaders(message.Response); 559switch (message.Response.Status) 562return ResponseWithHeaders.FromValue(headers, message.Response); 564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 577var headers = new FileSetMetadataHeaders(message.Response); 578switch (message.Response.Status) 581return ResponseWithHeaders.FromValue(headers, message.Response); 583throw _clientDiagnostics.CreateRequestFailedException(message.Response); 623var headers = new FileAcquireLeaseHeaders(message.Response); 624switch (message.Response.Status) 627return ResponseWithHeaders.FromValue(headers, message.Response); 629throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 642var headers = new FileAcquireLeaseHeaders(message.Response); 643switch (message.Response.Status) 646return ResponseWithHeaders.FromValue(headers, message.Response); 648throw _clientDiagnostics.CreateRequestFailedException(message.Response); 686var headers = new FileReleaseLeaseHeaders(message.Response); 687switch (message.Response.Status) 690return ResponseWithHeaders.FromValue(headers, message.Response); 692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 710var headers = new FileReleaseLeaseHeaders(message.Response); 711switch (message.Response.Status) 714return ResponseWithHeaders.FromValue(headers, message.Response); 716throw _clientDiagnostics.CreateRequestFailedException(message.Response); 759var headers = new FileChangeLeaseHeaders(message.Response); 760switch (message.Response.Status) 763return ResponseWithHeaders.FromValue(headers, message.Response); 765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 784var headers = new FileChangeLeaseHeaders(message.Response); 785switch (message.Response.Status) 788return ResponseWithHeaders.FromValue(headers, message.Response); 790throw _clientDiagnostics.CreateRequestFailedException(message.Response); 825var headers = new FileBreakLeaseHeaders(message.Response); 826switch (message.Response.Status) 829return ResponseWithHeaders.FromValue(headers, message.Response); 831throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 843var headers = new FileBreakLeaseHeaders(message.Response); 844switch (message.Response.Status) 847return ResponseWithHeaders.FromValue(headers, message.Response); 849throw _clientDiagnostics.CreateRequestFailedException(message.Response); 906var headers = new FileUploadRangeHeaders(message.Response); 907switch (message.Response.Status) 910return ResponseWithHeaders.FromValue(headers, message.Response); 912throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 935var headers = new FileUploadRangeHeaders(message.Response); 936switch (message.Response.Status) 939return ResponseWithHeaders.FromValue(headers, message.Response); 941throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1015var headers = new FileUploadRangeFromURLHeaders(message.Response); 1016switch (message.Response.Status) 1019return ResponseWithHeaders.FromValue(headers, message.Response); 1021throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1050var headers = new FileUploadRangeFromURLHeaders(message.Response); 1051switch (message.Response.Status) 1054return ResponseWithHeaders.FromValue(headers, message.Response); 1056throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1105var headers = new FileGetRangeListHeaders(message.Response); 1106switch (message.Response.Status) 1111var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1116return ResponseWithHeaders.FromValue(value, headers, message.Response); 1119throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1134var headers = new FileGetRangeListHeaders(message.Response); 1135switch (message.Response.Status) 1140var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1145return ResponseWithHeaders.FromValue(value, headers, message.Response); 1148throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1229var headers = new FileStartCopyHeaders(message.Response); 1230switch (message.Response.Status) 1233return ResponseWithHeaders.FromValue(headers, message.Response); 1235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1258var headers = new FileStartCopyHeaders(message.Response); 1259switch (message.Response.Status) 1262return ResponseWithHeaders.FromValue(headers, message.Response); 1264throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1307var headers = new FileAbortCopyHeaders(message.Response); 1308switch (message.Response.Status) 1311return ResponseWithHeaders.FromValue(headers, message.Response); 1313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1332var headers = new FileAbortCopyHeaders(message.Response); 1333switch (message.Response.Status) 1336return ResponseWithHeaders.FromValue(headers, message.Response); 1338throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1382var headers = new FileListHandlesHeaders(message.Response); 1383switch (message.Response.Status) 1388var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1393return ResponseWithHeaders.FromValue(value, headers, message.Response); 1396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1410var headers = new FileListHandlesHeaders(message.Response); 1411switch (message.Response.Status) 1416var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1421return ResponseWithHeaders.FromValue(value, headers, message.Response); 1424throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1471var headers = new FileForceCloseHandlesHeaders(message.Response); 1472switch (message.Response.Status) 1475return ResponseWithHeaders.FromValue(headers, message.Response); 1477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1497var headers = new FileForceCloseHandlesHeaders(message.Response); 1498switch (message.Response.Status) 1501return ResponseWithHeaders.FromValue(headers, message.Response); 1503throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1588var headers = new FileRenameHeaders(message.Response); 1589switch (message.Response.Status) 1592return ResponseWithHeaders.FromValue(headers, message.Response); 1594throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1620var headers = new FileRenameHeaders(message.Response); 1621switch (message.Response.Status) 1624return ResponseWithHeaders.FromValue(headers, message.Response); 1626throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (38)
78var headers = new ServiceSetPropertiesHeaders(message.Response); 79switch (message.Response.Status) 82return ResponseWithHeaders.FromValue(headers, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 102var headers = new ServiceSetPropertiesHeaders(message.Response); 103switch (message.Response.Status) 106return ResponseWithHeaders.FromValue(headers, message.Response); 108throw _clientDiagnostics.CreateRequestFailedException(message.Response); 139var headers = new ServiceGetPropertiesHeaders(message.Response); 140switch (message.Response.Status) 145var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 150return ResponseWithHeaders.FromValue(value, headers, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164var headers = new ServiceGetPropertiesHeaders(message.Response); 165switch (message.Response.Status) 170var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 175return ResponseWithHeaders.FromValue(value, headers, message.Response); 178throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228var headers = new ServiceListSharesSegmentHeaders(message.Response); 229switch (message.Response.Status) 234var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 239return ResponseWithHeaders.FromValue(value, headers, message.Response); 242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257var headers = new ServiceListSharesSegmentHeaders(message.Response); 258switch (message.Response.Status) 263var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 268return ResponseWithHeaders.FromValue(value, headers, message.Response); 271throw _clientDiagnostics.CreateRequestFailedException(message.Response); 307var headers = new ServiceListSharesSegmentHeaders(message.Response); 308switch (message.Response.Status) 313var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 318return ResponseWithHeaders.FromValue(value, headers, message.Response); 321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343var headers = new ServiceListSharesSegmentHeaders(message.Response); 344switch (message.Response.Status) 349var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 354return ResponseWithHeaders.FromValue(value, headers, message.Response); 357throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ShareRestClient.cs (142)
91var headers = new ShareCreateHeaders(message.Response); 92switch (message.Response.Status) 95return ResponseWithHeaders.FromValue(headers, message.Response); 97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113var headers = new ShareCreateHeaders(message.Response); 114switch (message.Response.Status) 117return ResponseWithHeaders.FromValue(headers, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 158var headers = new ShareGetPropertiesHeaders(message.Response); 159switch (message.Response.Status) 162return ResponseWithHeaders.FromValue(headers, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 177var headers = new ShareGetPropertiesHeaders(message.Response); 178switch (message.Response.Status) 181return ResponseWithHeaders.FromValue(headers, message.Response); 183throw _clientDiagnostics.CreateRequestFailedException(message.Response); 227var headers = new ShareDeleteHeaders(message.Response); 228switch (message.Response.Status) 231return ResponseWithHeaders.FromValue(headers, message.Response); 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247var headers = new ShareDeleteHeaders(message.Response); 248switch (message.Response.Status) 251return ResponseWithHeaders.FromValue(headers, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299var headers = new ShareAcquireLeaseHeaders(message.Response); 300switch (message.Response.Status) 303return ResponseWithHeaders.FromValue(headers, message.Response); 305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319var headers = new ShareAcquireLeaseHeaders(message.Response); 320switch (message.Response.Status) 323return ResponseWithHeaders.FromValue(headers, message.Response); 325throw _clientDiagnostics.CreateRequestFailedException(message.Response); 369var headers = new ShareReleaseLeaseHeaders(message.Response); 370switch (message.Response.Status) 373return ResponseWithHeaders.FromValue(headers, message.Response); 375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394var headers = new ShareReleaseLeaseHeaders(message.Response); 395switch (message.Response.Status) 398return ResponseWithHeaders.FromValue(headers, message.Response); 400throw _clientDiagnostics.CreateRequestFailedException(message.Response); 449var headers = new ShareChangeLeaseHeaders(message.Response); 450switch (message.Response.Status) 453return ResponseWithHeaders.FromValue(headers, message.Response); 455throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 475var headers = new ShareChangeLeaseHeaders(message.Response); 476switch (message.Response.Status) 479return ResponseWithHeaders.FromValue(headers, message.Response); 481throw _clientDiagnostics.CreateRequestFailedException(message.Response); 525var headers = new ShareRenewLeaseHeaders(message.Response); 526switch (message.Response.Status) 529return ResponseWithHeaders.FromValue(headers, message.Response); 531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 550var headers = new ShareRenewLeaseHeaders(message.Response); 551switch (message.Response.Status) 554return ResponseWithHeaders.FromValue(headers, message.Response); 556throw _clientDiagnostics.CreateRequestFailedException(message.Response); 602var headers = new ShareBreakLeaseHeaders(message.Response); 603switch (message.Response.Status) 606return ResponseWithHeaders.FromValue(headers, message.Response); 608throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 622var headers = new ShareBreakLeaseHeaders(message.Response); 623switch (message.Response.Status) 626return ResponseWithHeaders.FromValue(headers, message.Response); 628throw _clientDiagnostics.CreateRequestFailedException(message.Response); 663var headers = new ShareCreateSnapshotHeaders(message.Response); 664switch (message.Response.Status) 667return ResponseWithHeaders.FromValue(headers, message.Response); 669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 681var headers = new ShareCreateSnapshotHeaders(message.Response); 682switch (message.Response.Status) 685return ResponseWithHeaders.FromValue(headers, message.Response); 687throw _clientDiagnostics.CreateRequestFailedException(message.Response); 728var headers = new ShareCreatePermissionHeaders(message.Response); 729switch (message.Response.Status) 732return ResponseWithHeaders.FromValue(headers, message.Response); 734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752var headers = new ShareCreatePermissionHeaders(message.Response); 753switch (message.Response.Status) 756return ResponseWithHeaders.FromValue(headers, message.Response); 758throw _clientDiagnostics.CreateRequestFailedException(message.Response); 796var headers = new ShareGetPermissionHeaders(message.Response); 797switch (message.Response.Status) 802using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 804return ResponseWithHeaders.FromValue(value, headers, message.Response); 807throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 825var headers = new ShareGetPermissionHeaders(message.Response); 826switch (message.Response.Status) 831using var document = JsonDocument.Parse(message.Response.ContentStream); 833return ResponseWithHeaders.FromValue(value, headers, message.Response); 836throw _clientDiagnostics.CreateRequestFailedException(message.Response); 886var headers = new ShareSetPropertiesHeaders(message.Response); 887switch (message.Response.Status) 890return ResponseWithHeaders.FromValue(headers, message.Response); 892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 907var headers = new ShareSetPropertiesHeaders(message.Response); 908switch (message.Response.Status) 911return ResponseWithHeaders.FromValue(headers, message.Response); 913throw _clientDiagnostics.CreateRequestFailedException(message.Response); 953var headers = new ShareSetMetadataHeaders(message.Response); 954switch (message.Response.Status) 957return ResponseWithHeaders.FromValue(headers, message.Response); 959throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 972var headers = new ShareSetMetadataHeaders(message.Response); 973switch (message.Response.Status) 976return ResponseWithHeaders.FromValue(headers, message.Response); 978throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1013var headers = new ShareGetAccessPolicyHeaders(message.Response); 1014switch (message.Response.Status) 1019var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1029return ResponseWithHeaders.FromValue(value, headers, message.Response); 1032throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1044var headers = new ShareGetAccessPolicyHeaders(message.Response); 1045switch (message.Response.Status) 1050var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1060return ResponseWithHeaders.FromValue(value, headers, message.Response); 1063throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1111var headers = new ShareSetAccessPolicyHeaders(message.Response); 1112switch (message.Response.Status) 1115return ResponseWithHeaders.FromValue(headers, message.Response); 1117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1130var headers = new ShareSetAccessPolicyHeaders(message.Response); 1131switch (message.Response.Status) 1134return ResponseWithHeaders.FromValue(headers, message.Response); 1136throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1171var headers = new ShareGetStatisticsHeaders(message.Response); 1172switch (message.Response.Status) 1177var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1182return ResponseWithHeaders.FromValue(value, headers, message.Response); 1185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1197var headers = new ShareGetStatisticsHeaders(message.Response); 1198switch (message.Response.Status) 1203var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1208return ResponseWithHeaders.FromValue(value, headers, message.Response); 1211throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1251var headers = new ShareRestoreHeaders(message.Response); 1252switch (message.Response.Status) 1255return ResponseWithHeaders.FromValue(headers, message.Response); 1257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1270var headers = new ShareRestoreHeaders(message.Response); 1271switch (message.Response.Status) 1274return ResponseWithHeaders.FromValue(headers, message.Response); 1276throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (1)
79var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Files.Shares.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.Shares.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Queues (165)
Generated\MessageIdRestClient.cs (16)
87var headers = new MessageIdUpdateHeaders(message.Response); 88switch (message.Response.Status) 91return ResponseWithHeaders.FromValue(headers, message.Response); 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 118var headers = new MessageIdUpdateHeaders(message.Response); 119switch (message.Response.Status) 122return ResponseWithHeaders.FromValue(headers, message.Response); 124throw _clientDiagnostics.CreateRequestFailedException(message.Response); 167var headers = new MessageIdDeleteHeaders(message.Response); 168switch (message.Response.Status) 171return ResponseWithHeaders.FromValue(headers, message.Response); 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 196var headers = new MessageIdDeleteHeaders(message.Response); 197switch (message.Response.Status) 200return ResponseWithHeaders.FromValue(headers, message.Response); 202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MessagesRestClient.cs (38)
75var headers = new MessagesDequeueHeaders(message.Response); 76switch (message.Response.Status) 81var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 91return ResponseWithHeaders.FromValue(value, headers, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107var headers = new MessagesDequeueHeaders(message.Response); 108switch (message.Response.Status) 113var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 123return ResponseWithHeaders.FromValue(value, headers, message.Response); 126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 155var headers = new MessagesClearHeaders(message.Response); 156switch (message.Response.Status) 159return ResponseWithHeaders.FromValue(headers, message.Response); 161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172var headers = new MessagesClearHeaders(message.Response); 173switch (message.Response.Status) 176return ResponseWithHeaders.FromValue(headers, message.Response); 178throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228var headers = new MessagesEnqueueHeaders(message.Response); 229switch (message.Response.Status) 234var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 244return ResponseWithHeaders.FromValue(value, headers, message.Response); 247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267var headers = new MessagesEnqueueHeaders(message.Response); 268switch (message.Response.Status) 273var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 283return ResponseWithHeaders.FromValue(value, headers, message.Response); 286throw _clientDiagnostics.CreateRequestFailedException(message.Response); 321var headers = new MessagesPeekHeaders(message.Response); 322switch (message.Response.Status) 327var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 337return ResponseWithHeaders.FromValue(value, headers, message.Response); 340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352var headers = new MessagesPeekHeaders(message.Response); 353switch (message.Response.Status) 358var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 368return ResponseWithHeaders.FromValue(value, headers, message.Response); 371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueueRestClient.cs (50)
69var headers = new QueueCreateHeaders(message.Response); 70switch (message.Response.Status) 74return ResponseWithHeaders.FromValue(headers, message.Response); 76throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 88var headers = new QueueCreateHeaders(message.Response); 89switch (message.Response.Status) 93return ResponseWithHeaders.FromValue(headers, message.Response); 95throw _clientDiagnostics.CreateRequestFailedException(message.Response); 123var headers = new QueueDeleteHeaders(message.Response); 124switch (message.Response.Status) 127return ResponseWithHeaders.FromValue(headers, message.Response); 129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140var headers = new QueueDeleteHeaders(message.Response); 141switch (message.Response.Status) 144return ResponseWithHeaders.FromValue(headers, message.Response); 146throw _clientDiagnostics.CreateRequestFailedException(message.Response); 175var headers = new QueueGetPropertiesHeaders(message.Response); 176switch (message.Response.Status) 179return ResponseWithHeaders.FromValue(headers, message.Response); 181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 192var headers = new QueueGetPropertiesHeaders(message.Response); 193switch (message.Response.Status) 196return ResponseWithHeaders.FromValue(headers, message.Response); 198throw _clientDiagnostics.CreateRequestFailedException(message.Response); 232var headers = new QueueSetMetadataHeaders(message.Response); 233switch (message.Response.Status) 236return ResponseWithHeaders.FromValue(headers, message.Response); 238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250var headers = new QueueSetMetadataHeaders(message.Response); 251switch (message.Response.Status) 254return ResponseWithHeaders.FromValue(headers, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 285var headers = new QueueGetAccessPolicyHeaders(message.Response); 286switch (message.Response.Status) 291var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 301return ResponseWithHeaders.FromValue(value, headers, message.Response); 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 315var headers = new QueueGetAccessPolicyHeaders(message.Response); 316switch (message.Response.Status) 321var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 331return ResponseWithHeaders.FromValue(value, headers, message.Response); 334throw _clientDiagnostics.CreateRequestFailedException(message.Response); 376var headers = new QueueSetAccessPolicyHeaders(message.Response); 377switch (message.Response.Status) 380return ResponseWithHeaders.FromValue(headers, message.Response); 382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394var headers = new QueueSetAccessPolicyHeaders(message.Response); 395switch (message.Response.Status) 398return ResponseWithHeaders.FromValue(headers, message.Response); 400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (48)
78var headers = new ServiceSetPropertiesHeaders(message.Response); 79switch (message.Response.Status) 82return ResponseWithHeaders.FromValue(headers, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 102var headers = new ServiceSetPropertiesHeaders(message.Response); 103switch (message.Response.Status) 106return ResponseWithHeaders.FromValue(headers, message.Response); 108throw _clientDiagnostics.CreateRequestFailedException(message.Response); 139var headers = new ServiceGetPropertiesHeaders(message.Response); 140switch (message.Response.Status) 145var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 150return ResponseWithHeaders.FromValue(value, headers, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164var headers = new ServiceGetPropertiesHeaders(message.Response); 165switch (message.Response.Status) 170var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 175return ResponseWithHeaders.FromValue(value, headers, message.Response); 178throw _clientDiagnostics.CreateRequestFailedException(message.Response); 209var headers = new ServiceGetStatisticsHeaders(message.Response); 210switch (message.Response.Status) 215var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 220return ResponseWithHeaders.FromValue(value, headers, message.Response); 223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234var headers = new ServiceGetStatisticsHeaders(message.Response); 235switch (message.Response.Status) 240var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 245return ResponseWithHeaders.FromValue(value, headers, message.Response); 248throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298var headers = new ServiceListQueuesSegmentHeaders(message.Response); 299switch (message.Response.Status) 304var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 309return ResponseWithHeaders.FromValue(value, headers, message.Response); 312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327var headers = new ServiceListQueuesSegmentHeaders(message.Response); 328switch (message.Response.Status) 333var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 338return ResponseWithHeaders.FromValue(value, headers, message.Response); 341throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377var headers = new ServiceListQueuesSegmentHeaders(message.Response); 378switch (message.Response.Status) 383var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 388return ResponseWithHeaders.FromValue(value, headers, message.Response); 391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 413var headers = new ServiceListQueuesSegmentHeaders(message.Response); 414switch (message.Response.Status) 419var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 424return ResponseWithHeaders.FromValue(value, headers, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (1)
79var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Queues.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Queues.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Template (13)
Generated\TemplateRestClient.cs (8)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Template.Generated (7)
Generated\TemplateServiceClient.cs (2)
388return message.Response.Status switch 401return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;
Azure.Verticals.AgriFood.Farming (62)
Generated\ApplicationDataClient.cs (3)
1337return message.Response.Status switch 1350return message.Response.Status switch 1364return message.Response.Status switch
Generated\AttachmentsClient.cs (3)
811return message.Response.Status switch 824return message.Response.Status switch 838return message.Response.Status switch
Generated\BoundariesClient.cs (4)
1904return message.Response.Status switch 1917return message.Response.Status switch 1930return message.Response.Status switch 1944return message.Response.Status switch
Generated\CropsClient.cs (3)
681return message.Response.Status switch 694return message.Response.Status switch 708return message.Response.Status switch
Generated\CropVarietiesClient.cs (3)
1003return message.Response.Status switch 1016return message.Response.Status switch 1030return message.Response.Status switch
Generated\FarmClient.cs (2)
378return message.Response.Status switch 391return message.Response.Status switch
Generated\FarmersClient.cs (4)
943return message.Response.Status switch 956return message.Response.Status switch 970return message.Response.Status switch 983return message.Response.Status switch
Generated\FarmsClient.cs (4)
1213return message.Response.Status switch 1226return message.Response.Status switch 1240return message.Response.Status switch 1253return message.Response.Status switch
Generated\FieldsClient.cs (4)
1261return message.Response.Status switch 1274return message.Response.Status switch 1288return message.Response.Status switch 1301return message.Response.Status switch
Generated\HarvestDataClient.cs (3)
1503return message.Response.Status switch 1516return message.Response.Status switch 1530return message.Response.Status switch
Generated\ImageProcessingClient.cs (2)
312return message.Response.Status switch 325return message.Response.Status switch
Generated\OAuthProvidersClient.cs (3)
688return message.Response.Status switch 701return message.Response.Status switch 715return message.Response.Status switch
Generated\OAuthTokensClient.cs (2)
661return message.Response.Status switch 674return message.Response.Status switch
Generated\PlantingDataClient.cs (3)
1371return message.Response.Status switch 1384return message.Response.Status switch 1398return message.Response.Status switch
Generated\ScenesClient.cs (2)
782return message.Response.Status switch 795return message.Response.Status switch
Generated\SeasonalFieldsClient.cs (4)
1519return message.Response.Status switch 1532return message.Response.Status switch 1546return message.Response.Status switch 1559return message.Response.Status switch
Generated\SeasonsClient.cs (3)
721return message.Response.Status switch 734return message.Response.Status switch 748return message.Response.Status switch
Generated\TillageDataClient.cs (3)
1257return message.Response.Status switch 1270return message.Response.Status switch 1284return message.Response.Status switch
Generated\WeatherClient.cs (2)
993return message.Response.Status switch 1006return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (4)
29return message.Response; 32throw await clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 50return message.Response; 53throw clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
163return message.Response;